formatting datetime field

D

djc

one of the columns in my asp.net datagrid shows a datetime value from an sql
server. By default is displays the date like this "mm/dd/yyyy hh:mm:ss am"
or the same ending in 'pm'. How do I make it only show the 'mm/dd/yyyy'
portion? Should I do this within asp.net/vb.net or should it be done
somewhere in the query that returns the data first?

any info would be 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

Top