         buffer.writeUInt8(0)
     validate: (value) ->
       if not value? then return null
+      if `value == "Invalid Date"` then return new TypeError "Invalid date."
       if value instanceof Date then return value
       value = Date.parse value
       if isNaN value then return new TypeError "Invalid date."

        buffer.writeUInt8 0
    validate: (value) ->
      if not value? then return null
      if value instanceof Date then return value
      value = Date.parse value
      if isNaN value then return new TypeError "Invalid date."

        buffer.writeUInt8 0
    validate: (value) ->
      if not value? then return null
      if `value == "Invalid Date"` then return new TypeError "Invalid date."
      if value instanceof Date then return value
      value = Date.parse value
      if isNaN value then return new TypeError "Invalid date."
