converts dates between ISO and Gregorian formats. PR: 38017 Submitted by: Kimura Fuyuki <fuyuki@mj.0038.net>