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に、ユリウス日文字列( 99901- 1999年1月1日)をオブジェクトに変換するために使用できる関数はありDateますか?
Date
使ってみCDate()ましたが、期待通りの結果が得られませんでした。
CDate()
ありがとう。
次のように機能すると思います。ユリウス日をjd変数に入れるだけです。
Dim dt as Date Dim jd as Long dt = DateSerial(1900 + Int(jd / 1000), 1, jd Mod 1000)