c# - Format DateTime string representation in GridView dataset -
just looking strategies modify typical
mm/dd/yy 00:00:00
mm/dd/yy of datetime item being returned in dataset bound gridview
thanks
the item within dataset , doing following
gridview.datasource = getdataset(); gridview.databind(); so don't have ton of interaction dataset @ moment. brute force iterate through ,
foreach(table) foreach(row) grab date col, format , concat desired but messy , wondering if there more elegant solution.
just specify dataformatstring in gridview
<asp:boundfield headertext="date" datafield="mydate" dataformatstring="{0:mm/dd/yy}">
Comments
Post a Comment