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
October 17, 2018F j, Y
Wednesday October 17th, 2018l F jS, Y
Oct 17, 2018M j, Y
Wed October 17, 2018D F j, Y
17/10/18d/m/y
17/10/2018d/m/Y

Time

Result Raw string
09:08:47H:i:s
09:08:47 amh:i:s a