Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I Have Create a
Form That I use A calendar and Text Box Than The Calender Date Select That Date
Show In Text Box
But The Format Of Show Date is mm/dd/yyyy/ And I want To change
These dd/mm/yyyy
Plz Help
Posted
Updated 2-Jun-12 0:24am
v2
Comments
Sander Rossel 2-Jun-12 6:25am    
Please don't re-post... You've already posted this exact question.
Prosan 2-Jun-12 7:12am    
which calender you are using

Hi friend,

Use this below code , if u r using doing this by AJAX...
Please Note dd/MM/yyyy(MM should be in Capital)


XML
<p>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:Button ID="btn" runat="server" Text="..." />
    </p>
    <p>
        &nbsp;</p>
    <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBox1"
        PopupPosition="BottomRight" Format="dd/MM/yyyy " Animated="true" PopupButtonID="btn"
        CssClass=" MyCalender" >
    </asp:CalendarExtender>
 
Share this answer
 
XML
<asp:CalendarExtender ID="txtReleaseDate_CalendarExtender" runat="server"
    Format="dd/MM/yyyy" PopupButtonID="imgCalendarFrom"
      TargetControlID="txtReleaseDate">
    </asp:CalendarExtender>
 
Share this answer
 
not very clear. what asp control you are using? is it through ajax or jq?
 
Share this answer
 
I guess u are using Windows Form
C#
dateTimePicker.Format = DateTimePickerFormat.Custom;
dateTimePicker.CustomFormat = "dd/MM/yy";
 
Share this answer
 
v2

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