iso dates in php code example Example: php date format iso echo date(DATE_ISO8601, strtotime('2010-12-30 23:21:46'));