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

Popular posts from this blog

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -