Date format conversion in php 5 -
this question has answer here:
- convert 1 date format in php 12 answers
i want convert d, d.m.y
y-m-d format i.e
echo $from_date=date('y-m-d', strtotime(wed, 09.12.15));
but give me result 2016-01-13
https://app.absence.io/#/calendar/absence/new check link, want send date in 2016-01-01 format database
first of all, ensure date string enclosed in quotations ("
or '
).
secondly, "wed, 09.12.15" not valid date format can understood strtotime()
.
the full list of date formats listed here.
Comments
Post a Comment