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

#1 chris98  Icon User is offline

  • D.I.C Addict

Reputation: 31
  • View blog
  • Posts: 848
  • 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

  • D.I.C Lover
  • member icon

Reputation: 3719
  • View blog
  • Posts: 5,991
  • 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