| Day | --- | --- | 
         
          | dandj | Day of the month, 2 digits with or without leading zeros | 01to31or1to31. (2 digit numbers
           higher than the number of days in the month are accepted, in which
           case they will make the month overflow. For example using 33 with
           January, means February 2nd) | 
         
          | Dandl | A textual representation of a day | MonthroughSunorSundaythroughSaturday. If
           the day name given is different then the day name belonging to a
           parsed (or default) date is different, then an overflow occurs to
           the next date with the given day name. See the
           examples below for an explanation. | 
         
          | S | English ordinal suffix for the day of the month, 2
          characters. It's ignored while processing. | st,nd,rdorth. | 
         
          | z | The day of the year (starting from 0);
           must be preceded by Yory. | 0through365. (3 digit
           numbers higher than the numbers in a year are accepted, in which
           case they will make the year overflow. For example using 366 with
           2022, means January 2nd, 2023) | 
         
          | Month | --- | --- | 
         
          | FandM | A textual representation of a month, such as January or Sept | JanuarythroughDecemberorJanthroughDec | 
         
          | mandn | Numeric representation of a month, with or without leading zeros | 01through12or1through12.
           (2 digit numbers higher than 12 are accepted, in which case they
           will make the year overflow. For example using 13 means January in
           the next year) | 
         
          | Year | --- | --- | 
         
          | Xandx | A full numeric representation of a year, up to 19 digits,
           optionally prefixed by +or- | Examples: 0055,787,1999,-2003,+10191 | 
         
          | Y | A full numeric representation of a year, up to 4 digits | Examples: 25(same as0025),787,1999,2003 | 
         
          | y | A two digit representation of a year (which is assumed to be in the
           range 1970-2069, inclusive) | Examples: 99or03(which will be interpreted as1999and2003, respectively) | 
         
          | Time | --- | --- | 
         
          | aandA | Ante meridiem and Post meridiem | amorpm | 
         
          | gandh | 12-hour format of an hour with or without leading zero | 1through12or01through12(2 digit
           numbers higher than 12 are accepted, in which case they will make
           the day overflow. For example using14means02in the next AM/PM period) | 
         
          | GandH | 24-hour format of an hour with or without leading zeros | 0through23or00through23(2 digit
           numbers higher than 24 are accepted, in which case they will make
           the day overflow. For example using26means02:00the next day) | 
         
          | i | Minutes with leading zeros | 00to59. (2 digit
           numbers higher than 59 are accepted, in which case they will make
           the hour overflow. For example using66means:06the next hour) | 
         
          | s | Seconds, with leading zeros | 00through59(2 digit
           numbers higher than 59 are accepted, in which case they will make
           the minute overflow. For example using90means:30the next minute) | 
         
          | v | Fraction in milliseconds (up to three digits) | Example: 12(0.12seconds),345(0.345seconds) | 
         
          | u | Fraction in microseconds (up to six digits) | Example: 45(0.45seconds),654321(0.654321seconds) | 
         
          | Timezone | --- | --- | 
         
          | e,O,p,PandT | Timezone identifier, or difference to UTC in hours, or
          difference to UTC with colon between hours and minutes, or timezone
          abbreviation | Examples: UTC,GMT,Atlantic/Azoresor+0200or+02:00orEST,MDT | 
         
          | Full Date/Time | --- | --- | 
         
          | U | Seconds since the Unix Epoch (January 1 1970 00:00:00 GMT) | Example: 1292177455 | 
         
          | Whitespace and Separators | --- | --- | 
         
          |  (space) | Zero or more spaces, tabs, NBSP (U+A0), or NNBSP (U+202F)
          characters | Example: "\t","  " | 
         
          | # | One of the following separation symbol: ;,:,/,.,,,-,(or) | Example: / | 
         
          | ;,:,/,.,,,-,(or) | The specified character. | Example: - | 
         
          | ? | A random byte | Example: ^(Be aware that for UTF-8
          characters you might need more than one?.
          In this case, using*is probably what you want
          instead) | 
         
          | * | Random bytes until the next separator or digit | Example: *inY-*-dwith
          the string2009-aWord-08will matchaWord | 
         
          | ! | Resets all fields (year, month, day, hour, minute, second,
          fraction and timezone information) to zero-like values ( 0for hour, minute, second and fraction,1for month and day,1970for year andUTCfor timezone information) | Without !,all fields will be set to the
          current date and time. | 
         
          | | | Resets all fields (year, month, day, hour, minute, second,
          fraction and timezone information) to zero-like values if they have
          not been parsed yet | Y-m-d|will set the year, month and day
          to the information found in the string to parse, and sets the hour,
          minute and second to 0. | 
         
          | + | If this format specifier is present, trailing data in the
          string will not cause an error, but a warning instead | Use DateTimeImmutable::getLastErrors() to find out
          whether trailing data was present. |