fixed string cast error, default format for DateTime objects