Fixed gregorian date printer to correctly match the type and return string in standard fashion. Added check for uninitialized state