Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all ,
this is my textbox
C#
<asp:TextBox ID="RecordBDate" runat="server" MaxLength="10"  >

the user enter dnd then it's completed /then user enter mm and it'sautocomplete / then the user enter yyyy
this is the fumction doing this
XML
<script type="text/javascript">
        function addSlashes(input) {
            var v = input.value;
            if (v.match(/^\d{2}$/) !== null) {
                input.value = v + '/';
            } else if (v.match(/^\d{2}\/\d{2}$/) !== null) {
                input.value = v + '/';
            }
        }
</script>


what i want to do is the user can enter the date in arabiclanguge how can i do it ?
Posted
Updated 16-Nov-14 11:28am
v2

1 solution

It's possible that by "Arabic calendar" you mean Hijri calendar: http://en.wikipedia.org/wiki/Islamic_calendar[^].

If this is so, please see: http://msdn.microsoft.com/en-us/library/system.globalization.hijricalendar%28v=vs.110%29.aspx[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900