In Excel, when I convert these 'General' numbers to dates, which is what they really are, I get different numbers than when I CONVERT()
them in SQL Server. The data is coming from an import.
General Excel conversion to date SQL Server conversion to datetime
37621 31-12-2002 2003-01-02 00:00:00.000
39082 31-12-2006 2007-01-02 00:00:00.000
39447 31-12-2007 2008-01-02 00:00:00.000
etc.
How can I get the real dates as in Excel with a query in SQL Server? As mentioned, I already used CONVERT(datetime, [General])
, but then I get the outcomes as in the column SQL Server conversion to datetime.