I have a radgrid and the dates should be formatted to display in the proper culture.
I set the culture in the radgrid as follows
The date columns are databound to datetime objects.
No matter what I do the datetime formats always appear in the US format (mm/dd/yyyy) when they should be (dd/mm/yyyy).
I would like to apply a standard date format to these columns as well to clean up the way they look. So the markup will look like this.
The only difference is that the DataFormat property is set.
Thanks
I set the culture in the radgrid as follows
<
telerik:RadGrid
runat
=
"server"
ID
=
"rgdGroupOrder"
CellSpacing
=
"0"
GridLines
=
"None"
Culture
=
"en-AU"
>
The date columns are databound to datetime objects.
<
telerik:GridBoundColumn
DataField
=
"ScheduleDateTime"
DataType
=
"System.DateTime"
FilterControlAltText
=
"Filter ScheduleDateTime column"
HeaderText
=
"Schedule Date/Time"
SortExpression
=
"ScheduleDateTime"
UniqueName
=
"ScheduleDateTime"
>
</
telerik:GridBoundColumn
>
No matter what I do the datetime formats always appear in the US format (mm/dd/yyyy) when they should be (dd/mm/yyyy).
I would like to apply a standard date format to these columns as well to clean up the way they look. So the markup will look like this.
<
telerik:GridBoundColumn
DataField
=
"ScheduleDateTime"
DataType
=
"System.DateTime"
FilterControlAltText
=
"Filter ScheduleDateTime column"
HeaderText
=
"Schedule Date/Time"
SortExpression
=
"ScheduleDateTime"
UniqueName
=
"ScheduleDateTime"
DataFormatString
=
"{0:g}"
>
</
telerik:GridBoundColumn
>
The only difference is that the DataFormat property is set.
Thanks