I found code at https://stackoverflow.com/a/14554483/1082492 to convert a DateTime
to a Julian Date but I can't find code to reverse the process and even more importantly included the time of day. I'm trying to do this in the .NET Micro Framework so what I can use is much more limited.
Asked
Active
Viewed 1,253 times
0
-
Why don't you consider [this answer](http://stackoverflow.com/a/5254812/961113) from the same post and just do the opposite – Habib Jul 30 '13 at 17:16
-
In the Micro Framework To/FromOADate doesn't exist – shmuelie Jul 30 '13 at 17:33
-
Look into NodaTime. https://code.google.com/p/noda-time/ It may not be usable but it should have code for what you need and it is open source. – lukegravitt Jul 30 '13 at 18:07
-
Gave NodaTime and unless I'm wrong it doesn't have what I need – shmuelie Jul 30 '13 at 22:27
1 Answers
0
Using NodaTime allows you to convert an Instant to Julian Date by inst.ToJulianDate(); conversely converting a Julian Date to an Instant jd.FromJulianDate().

Madcat
- 21
- 1