Jump to content

Archived

This topic is now archived and is closed to further replies.

dhope

convert a date into milliseconds

Recommended Posts

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.

Share this post


Link to post
Share on other sites
$milliseconds = 1000 * strtotime('25-11-2009');

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.