public static int DayOfEpoch( this DateTime dateTime )
var testDate = new DateTime(2002, 1, 1); ? testDate.DayOfEpoch(); // Result: 365
In This Article