Added a function to convert the date into the number of days since the start of the Julian Calendar