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
April 22, 2018F j, Y
Sunday April 22nd, 2018l F jS, Y
Apr 22, 2018M j, Y
Sun April 22, 2018D F j, Y
22/04/18d/m/y
22/04/2018d/m/Y

Time

Result Raw string
23:53:31H:i:s
11:53:31 pmh:i:s a