DBSelectedDate date format

2 posts, 1 answers
  1. L
    L avatar
    298 posts
    Member since:
    Apr 2008

    Posted 02 Jul 2010 Link to this post


    how do i format the date?

    I tried with this code but gaveeme an error: Thanks

     <telerik:RadDatePicker ID="dtDate" Runat="server"
                          Culture="English (United States)" DbSelectedDate='<%# Bind("SchedDate"),"{0:dd/MM/yyyy}") %>'>
    <Calendar UseRowHeadersAsSelectors="False"  UseColumnHeadersAsSelectors="False" ViewSelectorText="x"></Calendar>
    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
  2. Answer
    Tsvetoslav avatar
    1823 posts

    Posted 02 Jul 2010 Link to this post

    Hello Lui,

    Try setting the DateFormat or DisplayDateFormat property of the RadDatePicker's DateInput object.

    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top