Friday, January 09, 2009

DataFormatString in GridView control

Here is the DataFormatString for date as 02-Jan-2009 02:10 PM in gridview in asp.net

<asp:boundfield headertext="C.I. Date & Time" datafield="checkin_datetime" htmlencode="false" dataformatstring="{0: dd-MMM-yyyy hh:mm tt}" />

-::HTH::-

No comments: