src/Native/NativeUi.js
/**
   * When combined with `Decode.andThen`, creates a decoder for a Date.Date from
   * a plain JavaScript Date. This can be used for event handlers that pass a
   * Date.
   */
When combined with `Decode.andThen`, creates a decoder for a Date.Date from
a plain JavaScript Date. This can be used for event handlers that pass a
Date.
When combined with ` Decode . andThen ` creates a decoder for a Date . Date from a plain JavaScript Date . This can be used for event handlers that pass a Date .
function parseDate(value) {
    if (value instanceof Date) {
      return _elm_lang$core$Native_Json.succeed(value);
    } else {
      return _elm_lang$core$Native_Json.fail('Expected a Date, but did not find one');
    }
  }
function parseDate ( value ) { if ( value instanceof Date ) { return _elm_lang$core$Native_Json . succeed ( value ) ; } else { return _elm_lang$core$Native_Json . fail ( 'Expected a Date, but did not find one' ) ; } }
When combined with `Decode.andThen`, creates a decoder for a Date.Date from
 a plain JavaScript Date.
When combined with ` Decode . andThen ` creates a decoder for a Date . Date from a plain JavaScript Date .