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
- includes/
date.inc, line 16 - Date API functions and constants.
Code
define('DATE_ISO', 'date')