Implement conversion from a gregorian date