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