index.js
function (value) {
    var date = new Date(value)
    assertErr(!isNaN(date.getTime()), TypeError, 'Field error: value is an invalid Date')
    return date
  }
function (value) {
    var date = new Date(value)
    assertErr(!isNaN(date.getTime()), TypeError, 'Field error: value is an invalid Date')
    return date
  }
function ( value ) { var date = new Date ( value ) assertErr ( ! isNaN ( date . getTime ( ) ) , TypeError , 'Field error: value is an invalid Date' ) return date }
Parse value into date
@param  {*} value serialized date value
@return {Date} date value
Parse value into date