Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Visual Basic 6 中是否有可用于将儒略日期字符串(99001-1st of Jan 1999)转换为Date对象的函数?
Date
我尝试过使用CDate(),但结果不如预期。
CDate()
谢谢。
我认为以下方法可行,只需将您的朱利安日期放入 jd 变量中即可。
Dim dt as Date Dim jd as Long dt = DateSerial(1900 + Int(jd / 1000), 1, jd Mod 1000)