Skip to content
Discussion options

You must be logged in to vote

As mentioned in the linked post you can also modify the time formatter according to your needs, to

    time: function (date, settings, forCalendar) {
      if (!date) {
        return '';
      }
      var hour = date.getHours();
      var minute = date.getMinutes();
      var ampm = '';
      if (settings.ampm) {
        ampm = ' ' + (hour < 12 ? settings.text.am : settings.text.pm);
        hour = hour === 0 ? 12 : hour > 12 ? hour - 12 : hour;
      }
      return (hour < 10 ? '0':'') + hour + ':' + (minute < 10 ? '0' : '') + minute + ampm;
    },

See https://jsfiddle.net/lubber/jpLru0ev/6/

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by lubber-de
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment