0

I need your help please

how can i convert from local time to epoch time

from this: 2016-08-21 12:00

to this: 1471798800

i've already tried with this date('r', $epoch); but i cant get it thanks

skycomputer2
  • 243
  • 1
  • 13

1 Answers1

2

Use $timestamp = strtotime('2016-08-21 12:00');

Dylan Wheeler
  • 6,928
  • 14
  • 56
  • 80