I’m currently creating a PHP function retrieving Twitter feed according to a certain search.
I had no difficulty with json to get all I want and convert it to PHP.
I have only one problem, which is the date format. When i get it, it sorts like this :
Sat, 09 Feb 2013 14:08:27 +0000
Does someone have an idea oh how could I transform it to be like this : 9 Feb 2013, 14:08
Any help would be greatly appreciated!
Feed the date into either
strtotimewhich will give you something you then can use with thedatemethod.Or, alternatively, go the OOP way and use the
DateTimeobject and then usingDateTime::format