Format a date string in PHP

gghhrprhhz

New Member
If I have a string which represents a date, like "2011/07/01" (which is 1st July 2011) , how would I output that in more readable forms, like:\[code\]1 July 20111 Jul 2011 (month as three letters)\[/code\]And also, how could I make it intelligently show date ranges like "2011/07/01" to "2011/07/11" as\[code\]1 - 11 July 2001\[/code\](without repeating the 'July' and '2011' in this case)
 
Back
Top