Skip to content
This repository was archived by the owner on Feb 14, 2019. It is now read-only.
This repository was archived by the owner on Feb 14, 2019. It is now read-only.

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

@patarapolw

Description

@patarapolw

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions