Preformatted date strings

Not particularily hard to accomplish usually. However there was a few times where looking up and constructing a date using a PHP string can be a pain. This list is fairly comprehensive in common date formats.

Date

Result Raw string
June 25, 2018F j, Y
Monday June 25th, 2018l F jS, Y
Jun 25, 2018M j, Y
Mon June 25, 2018D F j, Y
25/06/18d/m/y
25/06/2018d/m/Y

Time

Result Raw string
18:59:32H:i:s
06:59:32 pmh:i:s a