PHP Date format

This is my list of useful date formats in PHP for my own reference, I update it whenever I come across to new ones, so that I don’t need to search for it on web.

To get the Day of a date

To get a date in this format

22 April 2013

To get, Jul 18

Adding no of days to a PHP date, In this example we are adding 2 days to a PHP date