This question already has an answer here:
- Convert one date format into another in PHP 15 answers
I'm having trouble converting midnight date into timestamp. I'm getting via AJAX POST method timestamp (including time zone offset) from klient, so then I'm converting this to a midnight date like this:
$timestamp = 1463990400; // for example
echo date('d-m-Y H:i:s', strtotime('today', $timestamp));
This line output is: 23-05-2016 00:00:00
And I would love to convert this midnight date time into timestamp to create SQL SELECT.
Is there any solution?
</div>