Julian Date Conversion

HOW TO:

Get the Julian date from a Datetime value
var myResult = ncTools.DateHelper.DTOJ(Convert.ToDateTime("2021-03-23")).ToString();
Result: 2459297
Get the DateTime value from a Julian date value
var myResult = ncTools.DateHelper.JTOD(2459297).ToString();
Result: 3/23/2021 12:00:00 AM
Download the ncTools Library here ncTools.zip 

Add Feedback