lib/datetimepicker/index.js
function getMoment(modelValue) {
      return moment(modelValue, angular.isString(modelValue) ? configuration.parseFormat : undefined)
    }
function getMoment(modelValue) {
      return moment(modelValue, angular.isString(modelValue) ? configuration.parseFormat : undefined)
    }
function getMoment ( modelValue ) { return moment ( modelValue , angular . isString ( modelValue ) ? configuration . parseFormat : undefined ) }
Converts a time value into a moment.

This function is now necessary because moment logs a warning when parsing a string without a format.
@param modelValue
a time value in any of the supported formats (Date, moment, milliseconds, and string)
@returns {moment}
representing the specified time value.
Converts a time value into a moment .