While making the newest version of DFW Scanner, I found the need to convert a date from the wordpress feed into a format that was less… official. Here is what wordpress gave me:
Wed, 06 Aug 2014 03:14:32 +0000
And I wanted to display something like this:
3:14 am Wednesday, August 6
After an evening of parsing through stack overflow pages, I came up with this:
If this gist appears center aligned, sorry about that. If you want to read more about standard date formatting, check this out.