Hi,
I need to convert dates in SmallDateTime format into Intergers. When I use CAST on '25/07/2003 11.26', SQL Server returns 37825. However, Excel spreadsheet returns 37827 when I format the date. CAST through SQL Server is exactly 2 less than Excel (even when using floating point conversion) Why is it different?
Thanks for your help.
Andy
I need to convert dates in SmallDateTime format into Intergers. When I use CAST on '25/07/2003 11.26', SQL Server returns 37825. However, Excel spreadsheet returns 37827 when I format the date. CAST through SQL Server is exactly 2 less than Excel (even when using floating point conversion) Why is it different?
Thanks for your help.
Andy