tsql getdate conversion

Posted by Manjot on Stack Overflow See other posts from Stack Overflow or by Manjot
Published on 2010-06-11T02:45:06Z Indexed on 2010/06/11 2:53 UTC
Read the original article Hit count: 378

Filed under:
|

Hi,

I know that when i do the following, it converts getdate to int

select cast (getdate() as int)

Getdate output on my server is "2010-06-11 14:42:20.100" and the int to which the above command is converting to is 40339. What is this integer? Did this int consider minutes and seconds? i am confused. Please help.

Regards

Manjot

© Stack Overflow or respective owner

Related posts about sql-server-2005

Related posts about tsql