PHP Date Formatting

This is another one of those things I made because I need it all the time and can never find it. We use unix/perl/PHP date formats for all sorts of fun stuff (my forum is one of those places), and this page wll show you how to format those numbers. For a more detailed explination, look here.
F jS, Y, g:i aDecember 4th, 2021, 10:06 pmBasic date and time
m.d.y12.04.21Simple with leading zeros
l, F jS G:i:sSaturday, December 4th 22:06:11Day, date, and 24-hour (military) time
D M jSat Dec 4Short versions of day and month
n/j g:i A12/4 10:06 PMDate without leading zeros and AM/PM in uppercase
Y: \D\a\y #z2021: Day #337Day of the year (0-365)

Unformatted numerical date:

(Current date in this box is 0 seconds away from today's date)

The breakdown (year must be between 1970 and 2038):