Posted by Simon Hayes on 09/26/05 11:03
Datetime values are stored in a binary format, so you have to decide
how they should be formatted when you retrieve the data. Although you
can use CONVERT() in a query to get a specific format (see Books
Online), it's usually a better idea to do the formatting on the client
- presentation and formatting are really client-side tasks, and it's
easier to handle different client locales etc. See here for more
information about working with datetime data:
http://www.karaszi.com/sqlserver/info_datetime.asp
Simon
[Back to original message]
|