CodePudding user response:
1 is in excel 1900-1-1, 2 is 1900-1-2, so use dateadd (day, n - 1, '1900-1-1') by the dateCodePudding user response:
Before the import into string format? CONVERT (VARCHAR (10), GETDATE (), 120)CodePudding user response:
The select dateadd (hour, 8, dateadd (s, convert (int, '41337'), '1900-1-1'))