javascript - format date with bootstrap datepicker -
i'm getting data coming ajax call , format before inserting input field. however, i'm getting mysql in format 1978-03-94 00:00:00
i've tried bunch of things javascripts new date() no luck. have bootstrap datetimepicker plugin can use, tried
var duedate = $.datepicker.formatdate('mmmm d, yyyy', new date(taskdata.due_date));
but says cannot .formatdate of undefined. think doesnt i'm feeding time well.
i format date format april 21, 2016 or 'mmmm d, yyyy' - in datepicker.
any appreciated!
Comments
Post a Comment