1 Replies - 385 Views - Last Post: 16 March 2014 - 08:57 AM Rate Topic: -----

#1 chris98  Icon User is offline

  • D.I.C Lover

Reputation: 39
  • View blog
  • Posts: 1,017
  • Joined: 06-July 13

convert date() to time() - possible?

Posted 16 March 2014 - 06:42 AM

I know how to format time() to date() like below, but is the reverse possible?

$time = time();
echo (date("Y-m-d",$time));


Is This A Good Question/Topic? 0
  • +

Replies To: convert date() to time() - possible?

#2 Atli  Icon User is offline

  • Enhance Your Calm
  • member icon

Reputation: 3858
  • View blog
  • Posts: 6,364
  • Joined: 08-June 10

Re: convert date() to time() - possible?

Posted 16 March 2014 - 08:57 AM

Sure. The are two common ways to convert a human-readable date string into a usable time value:


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1