This question already has an answer here:
- Convert one date format into another in PHP 15 answers
I want to convert D, d.m.y
to Y-m-d format i.e
echo $from_date=date('Y-m-d', strtotime(Wed, 09.12.15));
But this give me this result 2016-01-13
https://app.absence.io/#/calendar/absence/new check this link, i want to send the from date in 2016-01-01 format to the database
</div>