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
Updated 2-Jun-12 0:24am
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)

        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:Button ID="btn" runat="server" Text="..." />
    <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBox1"
        PopupPosition="BottomRight" Format="dd/MM/yyyy " Animated="true" PopupButtonID="btn"
        CssClass=" MyCalender" >
Share this answer
<asp:CalendarExtender ID="txtReleaseDate_CalendarExtender" runat="server"
    Format="dd/MM/yyyy" PopupButtonID="imgCalendarFrom"
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
dateTimePicker.Format = DateTimePickerFormat.Custom;
dateTimePicker.CustomFormat = "dd/MM/yy";
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