RadTimepicker used to set date using culture info

2 posts, 0 answers
  1. VEDA VIDVA NARAYANAN SATTANATHAN
    VEDA VIDVA NARAYANAN SATTANATHAN avatar
    18 posts
    Member since:
    Aug 2008

    Posted 07 Jan 2009 Link to this post

    Hi,

     I am using a customRadDatetime picker control in which i will be setting the values dynamically based on the culture set. if i set the date to be in a format( i.e ('dd/mm/yyyy') only when i select the textbox the format changes
    or else the default format comes again. please provide a solution to set the dateformat based on culture to be dynamic and should not change if selected  date also changes. it should also work in the selecteddate changed Event.

    Thanks
    Veda.S
      
  2. Daniel
    Admin
    Daniel avatar
    4949 posts

    Posted 08 Jan 2009 Link to this post

    Hello Veda,

    Please try to set both DateFormat and DateTimeFormat properties of the nested DateInput control as shown below:
    RadDateTimePicker1.DateInput.DateFormat = "dd/MM/yyyy"
    RadDateTimePicker1.DateInput.DisplayDateFormat = "dd/MM/yyyy"

    <telerik:RadDateTimePicker ID="RadDateTimePicker1" runat="server" /> 

    Let me know if I missed something.

    Regards,
    Daniel
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top