all groups > sql server msde > january 2005 >
You're in the

sql server msde

group:

datetime to date???


datetime to date??? Rutko
1/29/2005 8:04:47 PM
sql server msde: When I send a query 'SELECT somedatecolumn FROM....' I got resultset
containing datetime. It's ok because it is a datetime field (or
smalldatetime) but it is a little frustrating because I'm interested only in
date. Is it possible to get only a date, without the time? My previous
database was in Visual FoxPro and there I had date columns but on MSDE or
MSSQL it seems I only can have datetime or smalldatetime.

Thx.

Re: datetime to date??? Jim Young
1/29/2005 9:55:42 PM
See the DATEPART functions in the Books On Line.

Jim

[quoted text, click to view]

Re: datetime to date??? Hugo Kornelis
1/29/2005 10:57:50 PM
[quoted text, click to view]

Hi Rutko,

The short answer: no.

The long answer: http://www.karaszi.com/SQLServer/info_datetime.asp

Best, Hugo
--

AddThis Social Bookmark Button