Change selectedDate format

4 posts, 0 answers
  1. Mike
    Mike avatar
    31 posts
    Member since:
    Oct 2007

    Posted 15 Mar 2011 Link to this post

    How do you format the radSchedular default selecteddate appearance? Mine defaults to Mar, 2011 unless I manually put something in. I would like it to be March 2011 (current Month Current Year)  and can it be centered in the header? I did not notice any css class in the skin that would handle this.

    Thanks!
    Mike
  2. Veronica
    Admin
    Veronica avatar
    1213 posts

    Posted 16 Mar 2011 Link to this post

    Hello Mike,

    You can center the date header with this CSS:

    div.RadScheduler .rsHeader
            {
                text-align: center;
            }

    Please let me know if you have further questions.

    Greetings,
    Veronica Milcheva
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. Mike
    Mike avatar
    31 posts
    Member since:
    Oct 2007

    Posted 16 Mar 2011 Link to this post

    Thanks Veronica, that helped with the centering part.

    Is there a way to pass in a custom date. Say radschedular1.SelectedDate.formatDate = "MMM yy" so it comes out as March, 2011?

    Thanks again!
  4. Mike
    Mike avatar
    31 posts
    Member since:
    Oct 2007

    Posted 16 Mar 2011 Link to this post

    Figured it out!
    <MonthView HeaderDateFormat="dddd d, MMM "" />
Back to Top