Snippet to display only days with jQuery Countdown

Tadashi Shigeoka ·  Sun, March 9, 2014

Here’s a snippet to display only days with jQuery Countdown.

var countDownEndDate = new Date('2015-01-01T00:00:00+0900');

$('#js-countdown').countdown({
  until: countDownEndDate,
  compact: true,
  compactLabels: ['', '', '', ''],
  format: 'D'
});

This will display only the days part of the countdown.


Reference Information

jQuery Countdown

jQuery Countdown Reference

That’s all from the Gemba.