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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -