Thursday, 7 April 2011

Formatting a date in a bound field

For your basic gridview:

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

And for a devexpress gridview:

PropertiesTextEdit-DisplayFormatString="{0:dd/MM/yyyy}"

No comments:

Post a Comment