This question already has an answer here:
- Convert one date format into another in PHP 15 answers
I trying to get a date in the d/m/Y H:i
format. Here's my code
$dateStr = "28/07/2016 10:00";
echo date('d/m/Y H:i', strtotime($dateStr));
Here's the ouput:
01/01/1970 01:00
I trying to convert to other formats, but the result still the same date. I know this kind of obvious but still can't understand why i'm getting that date as result.
</div>