Correct input values of strtotime

I want to convert a date by the following statement

$date=date('d M Y, H:m',strtotime($date));

It printed out 09 Sep 2012, 11:09 when I tried various values of $date:

11:00 AM Sunday, 09 Sep 2012
Sunday 09 Sep 2012, 11:00 AM
09 Sep 2012 11:00 AM

What date format does the strtotime() function need? It seems to me at least one of them meets the "English textual datetime description" condition.

Answers


Valid formats for strtotime are detailed here.


Need Your Help

JUNG: Paint graph on existing JPanel

java graph jung

I am starting with JUNG and I get to draw a graph in the Jpanel of a newly created JFrame, but I am unable to paint the same Graph in an existing Panel of the program I am developing.

how to find deployed environment?

java spring hibernate maven

I am using spring/hibernate application and build tool is MAVEN. i configured profiles in pom.xml. is it possible to know the deployed environment? if the packaged war is deployed in UAT/DEV/Produc...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.