Argument out of range Rails 4 and bootstrap3-datetimepicker-rails

后端 未结 4 742
隐瞒了意图╮
隐瞒了意图╮ 2021-02-07 08:29

I\'m using the bootstrap3-datetimepicker-rails gem to let users store the scheduled_date of a WorkOrder in my application (a \'DateTime\' property), bu

4条回答
  •  心在旅途
    2021-02-07 08:56

    This plugin uses moment.js. Basically you need to choose the time format you would like.

    example

    $(function () {
     $('#datetimepicker').datetimepicker({format: 'MMMM Do YYYY, h:mm'});
    });
    

提交回复
热议问题