Canonical interview question

Converting dates between 2 ancient calendars