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: 417
sql-server-2005
|tsql
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