4
Answers

How to display datetime in GridView in format MM/dd/yyyy?

tuanbs

tuanbs

15y
34.9k
1
I select a table in database into dataset, in this table include filed date(smalldatetime). Then I set this dataset to gridView. And column Date of GridView always display MM/dd/yyyy hh:mm:ss like 11/16/2009 4:13:00 PM. How to display only MM/dd/yyyy.
Answers (4)