3
Shouts

Coding Stuffs: Format DateTime in Gridview.

posted by kirankkirank 1269 days, 9 minutes ago
Friday, December 04, 2009 10:17:59 AM GMT

Gridview is using mostly , now i have come up with some small but very important task on how to display Proper date time on Gridview , Basically we are defining standard date time option (date + time) , but some time we only want to display date in this case you can follow the below format.Format Date on Bound Column in Grid View

Suppose you want DOB in short date format without time , then you can simply use DataFormatString ="{0:d}" for Short Date like this

if you are using above this...

category: Web Dev | clicked: 3 | | source: codingstuffsbykiran.blogspot.com | show counter code
tags: GridView, C#, Format, ASP.NET

No comments yet, be the first one to post comment.

To post your comment please login or signup