onChange(event) {
    // Take whatever format the input gave us, and turn it into an ISO date string
    const asISO = DateTime.fromFormat(
      event.target.value,
      this.dateFormat
    ).toISODate()

    if (this.props.onChange) {
      // Call into an onChange we got as props
      this.props.onChange(event)
    }

    // Update isoValue & formattedValue from the ISO we built
    this.setState(this.valuesFromIso(asISO))
  }
/**
   * Process change events from the input by updating the isoValue & formattedValue
   * of this component. Will call down to an onChange handler passed in.
   * @param {SyntheticEvent} event - React's original SyntheticEvent.
   * @return {void}
   */
Process change events from the input by updating the isoValue & formattedValue
of this component. Will call down to an onChange handler passed in.
@param {SyntheticEvent} event - React's original SyntheticEvent.
@return {void}
Process change events from the input by updating the isoValue & formattedValue of this component . Will call down to an onChange handler passed in . @param { SyntheticEvent } event - React ' s original SyntheticEvent . @return { void }
onChange(event) {
    const asISO = DateTime.fromFormat(
      event.target.value,
      this.dateFormat
    ).toISODate()
    if (this.props.onChange) {
      this.props.onChange(event)
    }
    this.setState(this.valuesFromIso(asISO))
  }
onChange ( event ) { const asISO = DateTime . fromFormat ( event . target . value , this . dateFormat ) . toISODate ( ) if ( this . props . onChange ) { this . props . onChange ( event ) } this . setState ( this . valuesFromIso ( asISO ) ) }
Process change events from the input by updating the isoValue & formattedValue
 of this component.
Process change events from the input by updating the isoValue & formattedValue of this component .
// Take whatever format the input gave us, and turn it into an ISO date string // Call into an onChange we got as props // Update isoValue & formattedValue from the ISO we built