itDateTime

Type: TInputType | Unit: EgStrParser

Accepts a date and a time, separated by one space or by T (ISO 8601, upper case only; t is not accepted).

Separator

T is tried first: if a T comes before the first space, or there is no space, T is the separator. This handles inputs such as 2026-03-25T2:30 PM, where the time itself contains a space.

Date part

The rules of itDate: compact, ISO and locale forms.

Time part

The rules of itTime: hh:mm, hh:mm:ss, fractional seconds (1 to 6 digits) and AM/PM. The SQL literal is always 24-hour. Compact times without : (0930) are not accepted, and spaces inside the time are not removed: only the one before AM/PM is allowed.

Examples

2026-03-25 09:30:00
2026-03-25T09:30:00
25/03/2026 09:30
2026-03-25T2:30 PM
25032026 09:30

Values

The locale date, a space and the 24-hour time in hh:mm:ss[.fff] form.

2026-03-25 09:30:00.500   ->   Values[0]: 25/03/2026 09:30:00.500  (pt-PT)

SQLValues

The SQL literal depends on the dialect (see SQL dialects):

2026-03-25 09:30:00 ->
  sqlElevateDB, sqlPostgreSQL,
  sqlFirebird:                  TIMESTAMP '2026-03-25 09:30:00'
  sqlMySQL, sqlDBISAM,
  sqlSQLite:                    '2026-03-25 09:30:00'
  sqlMSSQLServer:               '2026-03-25T09:30:00'
  sqlOracle:                    TO_TIMESTAMP('2026-03-25 09:30:00','YYYY-MM-DD HH24:MI:SS')
  sqlAccess:                    #2026-03-25 09:30:00#  (ms dropped)
  sqlBDEParadox:                "25.03.2026 09:30:00"  (ms dropped)

When the milliseconds are not zero, Firebird gets four fractional digits, in ten-thousandths of a second (ms x 10: 500 ms -> .5000). The other dialects with sub-second precision get three digits. sqlAccess and sqlBDEParadox drop the milliseconds.

Range

Input: 2026-01-01 00:00~2026-12-31 23:59:59
  ->  otRange
  ->  BETWEEN TIMESTAMP '2026-01-01 00:00:00' AND TIMESTAMP '2026-12-31 23:59:59'  (sqlElevateDB)

The left value must not be later than the right value, including the milliseconds; otherwise ERR_INVALID_RANGE is returned.

See Also

(C) 2026 Easygate, Lda