bootstrap-datetimepicker icon indicating copy to clipboard operation
bootstrap-datetimepicker copied to clipboard

format should accept Moment.js format, even though not a dependency

Open patarapolw opened this issue 6 years ago • 1 comments

It is a bit weird when I use both Moment.js format and your format differently, even though it show exactly the same format!

  $('#input-created')
    .val(moment().subtract(1, 'days').format('YYYY-MM-DD HH:00'))
    .datetimepicker({
      format: 'yyyy-mm-dd hh:00',
      todayBtn: true,
      todayHighlight: true,
      autoclose: true,
      minView: 'day',
      showMeridian: true
    })
    .change(function(){
      doSubmit();
    });

After all, it just couldn't use this one -- https://github.com/Eonasdan/bootstrap-datetimepicker nor this one https://github.com/tempusdominus/bootstrap-3 -- it shows an empty dialog.

patarapolw avatar Jul 30 '18 13:07 patarapolw

this one works fine for me

YassineElHosni avatar Aug 03 '18 15:08 YassineElHosni