Hello,
I am using a RadDatePicker Q12008
If I have it this way:
I select a date and it displays it fine "Mar 2007"
But if I change the formats to " DateFormat="MM/yyyy" DisplayDateFormat="MM/yyyy"
No matter what date I select, it always shows the month as 09 (the current month).. the year is correct
"09/2007" instead of "03/2007"
Ultimate goal is I need to be able to have them pick month and yeah, no day.
Thanks,
Matt
I am using a RadDatePicker Q12008
If I have it this way:
<telerik:RadDatePicker ID="rdpStartDate" runat="server"> |
<DateInput |
ID="DateInput1" runat="server" |
DateFormat="MMM yyyy" DisplayDateFormat="MMM yyyy"> |
</DateInput> |
</telerik:RadDatePicker> |
I select a date and it displays it fine "Mar 2007"
But if I change the formats to " DateFormat="MM/yyyy" DisplayDateFormat="MM/yyyy"
No matter what date I select, it always shows the month as 09 (the current month).. the year is correct
"09/2007" instead of "03/2007"
Ultimate goal is I need to be able to have them pick month and yeah, no day.
Thanks,
Matt
8 Answers, 1 is accepted
0

Shinu
Top achievements
Rank 2
answered on 07 Sep 2009, 08:35 AM
Hi Matt,
Try setting DisplayDateFormat alone in order to display month and year in the input of RadDatePicker.
ASPX:
Go through the following forum link for more information about this:
RadDatePicker DateFormat issue
-Shinu.
Try setting DisplayDateFormat alone in order to display month and year in the input of RadDatePicker.
ASPX:
<telerik:RadDatePicker ID="rdpStartDate" runat="server"> |
<DateInput ID="DateInput1" runat="server" DisplayDateFormat="MM/yyyy"> |
</DateInput> |
</telerik:RadDatePicker> |
Go through the following forum link for more information about this:
RadDatePicker DateFormat issue
-Shinu.
0

Matt
Top achievements
Rank 1
answered on 07 Sep 2009, 03:40 PM
Shinu,
Thank you very much, works like a charm!
Quick related question.. Anyone know if there is any way I can get just the month/year picker to come up and select from that instead of the calendar? People whine that they have to select a day when the day is meaningless in this case.
Thanks again!
Matt
Thank you very much, works like a charm!
Quick related question.. Anyone know if there is any way I can get just the month/year picker to come up and select from that instead of the calendar? People whine that they have to select a day when the day is meaningless in this case.
Thanks again!
Matt
0

Shinu
Top achievements
Rank 2
answered on 08 Sep 2009, 05:56 AM
Hi Matt,
Check out the following code library submission and see whether it meets your requirement.
Month/Year picker
Regards
Shinu
Check out the following code library submission and see whether it meets your requirement.
Month/Year picker
Regards
Shinu
0

Casey
Top achievements
Rank 1
answered on 06 Jan 2011, 08:15 PM
Shinu,
I know that this is an older post, and against an older version of the RadControls, but I wasn't sure how to accomplish the Month/Year picker so I thought I'd give the link you posted a try. However, the code library is not working 100% exactly as it is supposed to. It is always switching the month to the current month (01) rather than the month that I choose (09).
Any help would be appreciated!
Thanks!
Casey
I know that this is an older post, and against an older version of the RadControls, but I wasn't sure how to accomplish the Month/Year picker so I thought I'd give the link you posted a try. However, the code library is not working 100% exactly as it is supposed to. It is always switching the month to the current month (01) rather than the month that I choose (09).
Any help would be appreciated!
Thanks!
Casey
0
Hello Casey,
I am sending you a simple example, please check it out and let me know if it helps you.
Additionally please note that our developers are working on RadMonthYearPicker control and it will be released with the next major release Q1 2011.
Kind regards,
Radoslav
the Telerik team
I am sending you a simple example, please check it out and let me know if it helps you.
Additionally please note that our developers are working on RadMonthYearPicker control and it will be released with the next major release Q1 2011.
Kind regards,
Radoslav
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0

Casey
Top achievements
Rank 1
answered on 07 Jan 2011, 02:12 PM
It looks like the issue appears if you change the Date Format from "MMMM yyyy" to "MM/yyyy" or "MM yyyy".
Any clue why this doesn't work when you change the date format?
Thanks!
Casey
Any clue why this doesn't work when you change the date format?
Thanks!
Casey
0
Hi Matt,
Could you please try using the following declaration for the DateInput and let me know if the issue still exists:
Looking forward for your reply.
Kind regards,
Radoslav
the Telerik team
Could you please try using the following declaration for the DateInput and let me know if the issue still exists:
<
DateInput
DateFormat
=
"MM/dd/yyyy"
DisplayDateFormat
=
"MM/yyyy"
>
</
DateInput
>
Looking forward for your reply.
Kind regards,
Radoslav
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0

Casey
Top achievements
Rank 1
answered on 12 Jan 2011, 02:41 PM
Hi Radoslav,
I made the suggested modifications and the Month/Year picker is properly displaying the selected month and year.
Thank you!!!
Casey
I made the suggested modifications and the Month/Year picker is properly displaying the selected month and year.
Thank you!!!
Casey