lib/validate.js
function(value, options) {
    var format = options.dateOnly ?
      '{yyyy}-{MM}-{dd}' :
      '{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}';

    var d = FxoUtils.parseDateTimeField(value);
    return d.parsed.format(format);
  }
function(value, options) {
    var format = options.dateOnly ?
      '{yyyy}-{MM}-{dd}' :
      '{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}';

    var d = FxoUtils.parseDateTimeField(value);
    return d.parsed.format(format);
  }
function ( value , options ) { var format = options . dateOnly ? '{yyyy}-{MM}-{dd}' : '{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}' ; var d = FxoUtils . parseDateTimeField ( value ) ; return d . parsed . format ( format ) ; }
Input is a unix timestamp
Input is a unix timestamp