ajax - i have used datepicker but it always store date like 1970-01-01 -


can 1 please me? used date picker date , select today stores 1970-01-01.

$("#datepicker-1").datepicker(); }); 

and in php file stored in database:

$dt=$_post['date']; $dt1=date('y-m-d',strtotime($dt)); 

but stores 1970-01-01 no matter date choose. please me.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -