Saturday, July 18, 2015

Php/Mysql date saved as '0000-00-00'

The date format in Mysql is yyyy-mm-dd. Therefore we should convert the date as "Y-m-d".

$newdate= date("Y-m-d", strtotime($date));

No comments:

Post a Comment

TinyMCE Insert/Edit link not editable

 To fix this add  e.stopImmediatePropagation()  as below. $(document).on('focusin', function (e) {             if ($(e.target).close...