tuanbs

tuanbs

  • NA
  • 23
  • 103.8k

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

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