I have one issue with date function below i have put my all code. Please check. I have used jQuery calender in my joomla component
echo $data['startpublish'];
$data['startpublish'] = date('Y-m-d', strtotime($data['startpublish']));
echo "?>>>>>>>>>>>".$data['startpublish'];
exit;
I have store my date into mm-dd-yy format. When i store 01-02-2015 then it will store data in DB in (Y-m-d) format and when i store 01-28-2015 (28 Janvary) then it will convert into 1970-01-01.
Please let me know what the issue . I have added both screenshot as well.
issue SS : http://prntscr.com/812w0c
correct SS : http://prntscr.com/812xbj