Gridview can't format a date

S

Steve

I have a gridview bound to a SQL Server table. One of my columns is bound to
a datetime field. I set the column's dataformatstring property to
{0:yy-MM-dd} or {0:d} or {0:D} it doesn't matter. The dates are shown as
4/8/2006 12:00:00 AM. I want the date only but I can't supress the time. The
Gridview.autogeneratecolumns = false if that matters. Any suggestion would
be greatly appreciated.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,814
Latest member
SpicetreeDigital

Latest Threads

Top