This is a migrated thread and some comments may be shown as answers.

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

2 Answers 107 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Phuong
Top achievements
Rank 1
Phuong asked on 28 Jul 2011, 02:20 AM
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 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 28 Jul 2011, 05:47 AM
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.
0
Phuong
Top achievements
Rank 1
answered on 29 Jul 2011, 01:39 AM
I want to use this radcontrols 2007 Q3 because my page can load quickly. But RadControls Q3 2007 doesn't have MonthYearPicker.
Tags
Calendar
Asked by
Phuong
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Phuong
Top achievements
Rank 1
Share this question
or