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. Quote 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'); Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.