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

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -