This is a migrated thread and some comments may be shown as answers.

RadTimepicker used to set date using culture info

1 Answer 60 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
VEDA VIDVA NARAYANAN SATTANATHAN
Top achievements
Rank 1
VEDA VIDVA NARAYANAN SATTANATHAN asked on 07 Jan 2009, 11:36 AM
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
  

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 08 Jan 2009, 03:56 PM
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.
Tags
Calendar
Asked by
VEDA VIDVA NARAYANAN SATTANATHAN
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or