php - can't convert date from string -


i want date's timestamp string. i'm trying:

datetime::createfromformat("y-m-d", "2015-05-18t23:45:21.604z"); 

but returns nothing. don't know format this.

try this,

$date = date_create_from_format('d/m/y:h:i:s', '2015-05-18t23:45:21.604z'); $date->gettimestamp(); 

Comments

Popular posts from this blog

java - HTTP Status 500 - An exception occurred processing JSP page /second.jsp at line 15 -

php - Using str_replace to translate a MySQL Table in html -

asp.net mvc - Cannot display error message on Editor or EditorFor -