4
Reply

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

tuanbs

tuanbs

Nov 22 2009 1:29 PM
34.9k
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)