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

DateTime Format

3 Answers 390 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tung
Top achievements
Rank 1
Tung asked on 19 Sep 2008, 04:30 PM

How to I format DateTime to 'dd/mm/yyyy' with date field in RadGrid?

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 19 Sep 2008, 05:56 PM
Hello Tung,

There are an appropriate topics in our documentation.
Date Format Patterns
Specifying a Culture
Formatting Values

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Tung
Top achievements
Rank 1
answered on 20 Sep 2008, 03:43 AM
I want to set format "dd/mm/yyyy" in <telerik:GridDateTimeColunm> ?
0
Princy
Top achievements
Rank 2
answered on 22 Sep 2008, 10:13 AM
Hello Tung,

Check out the following code snippet to set the format for the GridDateTimeColumn.
aspx:
 <telerik:GridDateTimeColumn DataField="date" UniqueName="date" DataFormatString="{0:dd/mm/yyyy}">         
 </telerik:GridDateTimeColumn> 

Princy.
Tags
Grid
Asked by
Tung
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Tung
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or