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

select date in dd/MM/yyyy format

2 Answers 335 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rahul Khinvasara
Top achievements
Rank 1
Rahul Khinvasara asked on 24 Aug 2009, 06:47 AM
Hi 
    I have used Terlerik Rad Control Q2 2008 version.
    I have binded grid & set EditMode="InPlace"  property for grid,
    I have used 
    

<

 

telerik:GridDateTimeColumn DataField="DateObtained" DataFormatString="{0:dd/MM/yyyy}"

 

 

HeaderText="Date Obtained" SortExpression="DateObtained" UniqueName="DateObtained">

 

 

<ItemStyle Width="15%" />

 

 

<HeaderStyle Width="20%" />

 

 

</telerik:GridDateTimeColumn>

   At the time of editing I would like to select date in dd/MM/yyyy format . Right now it's showing in MM/dd/yyyy.

Please give me your reply.

 

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 24 Aug 2009, 07:08 AM
Hello Rahul,

GridDateTimeColumn sets the date format according to your current culture. You can avoid this easily by using GridTemplateColumn and RadDateTimePicker. Otherwise you could set the DateFormat and/or the Culture in code-behind.

Best regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Trung Nguyen
Top achievements
Rank 1
answered on 26 Aug 2009, 04:09 AM
Chính xác phải thế này nè bạn ơi :D

DataFormatString="{0:dd/MM/yyyy HH:mm}" 

Tags
Grid
Asked by
Rahul Khinvasara
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Trung Nguyen
Top achievements
Rank 1
Share this question
or