Hi Philip,

See this web page: Math Forum - Ask Dr. Math

Scroll down to the bottom to where it says

"Just for completeness, although you didn't ask for it, here is the

Fliegel-Van Flandern algorithm to convert from a Gregorian calendar

date to the Julian date:"