Date format conversion in php 5 -


this question has answer here:

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

Popular posts from this blog

Capture and play voice with Asterisk ARI -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -