Set up some constants.

Includes standard date types, format strings, strict regex strings for ISO and DATETIME formats (seconds are optional).

The loose regex will find any variety of ISO date and time, with or without time, with or without dashes and colons separating the elements, and with either a 'T' or a space separating date and time.

File

core/includes/date.inc, line 17
Date API functions.

Code

define('DATE_ISO', 'date')