Date format in RadDatePicker (RadControls for ASP.NET Q3 2007)

3 posts, 0 answers
  1. Phuong
    Phuong avatar
    2 posts
    Member since:
    Jul 2011

    Posted 27 Jul 2011 Link to this post

    i use RadControls for ASP.NET Q3 2007. In my code, i set Culture is Vietnamese style and i want radDatePicker only show month/year.
    <rad:RadDatePicker ID="radDate" runat="server" DateInput-DisplayDateFormat="MM/yyyy" DateInput-Culture="Vietnamese (Vietnam)">                               
                                    <Calendar ID="Calendar1" RangeMinDate="2006/01/01" runat="server" Skin="Sunny">
                                    </Calendar>
                                    <DatePopupButton HoverImageUrl="~/App_Themes/Default/images/datePickerPopupHover.gif"
                                        ImageUrl="~/App_Themes/Default/images/datePickerPopup.gif"></DatePopupButton>
                                </rad:RadDatePicker>
    but when i click to in DateInput to type, it shows in dd/MM/yyyy. I try to set attributes DateFormat = "MM/yyyy", it always sets radDatePicker is today. Everybody can help me? Thanks
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 28 Jul 2011 Link to this post

    Hello Phuong,

    I tried the following scenario and it worked on my end.
    aspx:
    <telerik:RadDatePicker ID="RadDatePicker1" runat="server" >
        <DateInput ID="DateInput2" DisplayDateFormat="MM/yyyy" runat="server">
        </DateInput>
    </telerik:RadDatePicker>
    And also you can check the following documentation for more on DataFormat Pattern Date Format Patterns.
    Another suggestion is that you can use MonthYearPicker.

    Hope this helps.
    Thanks,
    Shinu.
  3. Phuong
    Phuong avatar
    2 posts
    Member since:
    Jul 2011

    Posted 28 Jul 2011 Link to this post

    I want to use this radcontrols 2007 Q3 because my page can load quickly. But RadControls Q3 2007 doesn't have MonthYearPicker.
Back to Top