dhope Posted November 29, 2009 Share Posted November 29, 2009 Hi, Is there away to convert a date into milliseconds with php ? I am trying to convert a date for example 25-11-2009 "d-m-Y" into milliseconds which I can then use in JavaScript. Thanks in advance for any help. Link to comment https://forums.phpfreaks.com/topic/183295-convert-a-date-into-milliseconds/ Share on other sites More sharing options...
salathe Posted November 29, 2009 Share Posted November 29, 2009 $milliseconds = 1000 * strtotime('25-11-2009'); Link to comment https://forums.phpfreaks.com/topic/183295-convert-a-date-into-milliseconds/#findComment-967449 Share on other sites More sharing options...
dhope Posted November 29, 2009 Author Share Posted November 29, 2009 Thank you. Link to comment https://forums.phpfreaks.com/topic/183295-convert-a-date-into-milliseconds/#findComment-967464 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.