我有两个数字日期:
A. 65495和
B. 65496
日期应该是:A. 04/26/2020和
B. 04/27/2020
我试过这段代码:
select convert(varchar(25), cast(cast(tbl.mydate as integer) as datetime), 120) [newdate]
from tbl
;
但我最终得到了这些日期:
A. 2079-04-27 00:00:00和
B. 2079-04-28 00:00:00
我在 SQL-Server 上使用清晰度数据库。