[英]SQL convert 5 digit integer to date not based on 1/1/1900
我有一个SQL查询的输出,该查询产生的装机日期应该为2017年4月15日,整数为79001。我曾尝试将单元格格式导出到MS Excel和SQL中的Try_Convert函数后更改。
That would be about a century earlier. 那将是大约一个世纪之前。 Simple date arithmetic suggests that the start date is '1800-12-28'.
简单的日期算术建议开始日期为“ 1800-12-28”。 This would suggest subtracting 36,162 from the Excel cell and then converting to a date format.
这建议从Excel单元格中减去36162,然后转换为日期格式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.