gridview auto columns

G

Guest

hey all,
i have a gridview that have auto columns on. Well one of the fields is a
date field which shows the time by default. Is there a way to format without
the time when Auto Columns are on?

thanks,
rodchar
 
A

Alexey Smirnov

hey all,
i have a gridview that have auto columns on. Well one of the fields is a
date field which shows the time by default. Is there a way to format without
the time when Auto Columns are on?

thanks,
rodchar

Format the date in the select statement

For SQL Server

select convert(varchar,datetimefield,101) from table1
 

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

Top