valRe constant
String
const valRe
Regular expression for a DateTime.
Implementation
// ^\d{4}-\d{2}-\d{2}: Matches the date in YYYY-MM-DD format.
// [T ]: Matches either a literal T or a space separating the date and time.
// \d{2}:\d{2}:\d{2}: Matches the time in HH:MM:SS format.
// (?:\.\d+)?: An optional non-capturing group for the fractional seconds (e.g., .12345).
// (?:Z|[+-]\d{2}:?\d{2})?: An optional non-capturing group for the timezone offset, supporting Z (UTC) or offsets like +02:00, -0500, or +0200.
static const String valRe = "\\d{4}-\\d{2}-\\d{2}[T ]\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:?\\d{2})?";