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
August 15, 2018F j, Y
Wednesday August 15th, 2018l F jS, Y
Aug 15, 2018M j, Y
Wed August 15, 2018D F j, Y
15/08/18d/m/y
15/08/2018d/m/Y

Time

Result Raw string
19:15:32H:i:s
07:15:32 pmh:i:s a