Click here to Skip to main content
15,882,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i am using ajax calender and storing date in textbox. it is getting stored in the format 8/8/2013 (m/d/yyyy) but i want the format as 08/08/2013 (mm/dd/yyyy)


thanks in advance
Posted

1 solution

Please try below code as a sample

XML
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBox1" Format="dd/MM/yyyy">
    </cc1:CalendarExtender>
 
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