Good afternoon,
I need to convert the data from a form that comes in the form ex: 2018-02-13 to UNIX at midnight. If I convert normally using strtotime it comes right but with the time at 6:00 AM.
Can anyone give a light? Thanks =)
Good afternoon,
I need to convert the data from a form that comes in the form ex: 2018-02-13 to UNIX at midnight. If I convert normally using strtotime it comes right but with the time at 6:00 AM.
Can anyone give a light? Thanks =)
Solved, $ check_in = strtotime ('- 6 hour', strtotime ($ arrival));