RadDatePicker Display date

9 posts, 0 answers
  1. Matt
    Matt avatar
    11 posts
    Member since:
    May 2009

    Posted 06 Sep 2009 Link to this post

    Hello,

    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
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 07 Sep 2009 Link to this post

    Hi Matt,

    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.
  3. Matt
    Matt avatar
    11 posts
    Member since:
    May 2009

    Posted 07 Sep 2009 Link to this post

    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


  4. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 08 Sep 2009 Link to this post

    Hi Matt,

    Check out the following code library submission and see whether it meets your requirement.
    Month/Year picker

    Regards
    Shinu
  5. Casey
    Casey avatar
    299 posts
    Member since:
    Jul 2009

    Posted 06 Jan 2011 Link to this post

    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 
  6. Radoslav
    Admin
    Radoslav avatar
    1566 posts

    Posted 07 Jan 2011 Link to this post

    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
    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.
  7. Casey
    Casey avatar
    299 posts
    Member since:
    Jul 2009

    Posted 07 Jan 2011 Link to this post

    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
  8. Radoslav
    Admin
    Radoslav avatar
    1566 posts

    Posted 12 Jan 2011 Link to this post

    Hi Matt,

    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.
  9. Casey
    Casey avatar
    299 posts
    Member since:
    Jul 2009

    Posted 12 Jan 2011 Link to this post

    Hi Radoslav,

    I made the suggested modifications and the Month/Year picker is properly displaying the selected month and year.

    Thank you!!!
    Casey
Back to Top