dbushell/Pikaday — pull request #143 by xeeali (2014-04-29 02:36:05+00:00)
Title: Update pikaday.js - A simple time picker option added to the control

A simple time selection added to pikaday control.
You need to set showTime flag to true in order to render time picker on control

Here is a little example snippet for use:

datepicker = pikaday ({
minDate: moment().toDate(),
maxDate: moment().toDate()+365,
yearRange: 2,
showTime: true,
defaultTimeString: '12:00 PM',
onSelect: function() {
$target_element.attr('data-value', this.getMoment().format('ddd Do MMMM YYYY') + ' at ' + this.getTimeString());
}
});

As you can see getTimeString() will give you the selected time from time picker and there is also an optional defaultTimeString attribute to pass to the constructor.