asLuxon(date) {
    if (!date) {
      return DateTime.local()
    }

    const luxon = DateTime.fromISO(date)

    if (luxon.invalid) {
      return DateTime.local()
    }
    return luxon
  }
/**
   * Convert an iso date string to a Luxon DateTime. If iso date is blank / null,
   * or invalid (e.g. 2018-06-66), return the local current date instead.
   * @param {string} date - the date to convert, as either an iso date, or a
   *   blank / null
   * @return {DateTime} - a local DateTime
   */
Convert an iso date string to a Luxon DateTime. If iso date is blank / null,
or invalid , return the local current date instead.
@param {string} date - the date to convert, as either an iso date, or a
blank / null
@return {DateTime} - a local DateTime
Convert an iso date string to a Luxon DateTime . If iso date is blank / null or invalid return the local current date instead . @param { string } date - the date to convert as either an iso date or a blank / null @return { DateTime } - a local DateTime
asLuxon(date) {
    if (!date) {
      return DateTime.local()
    }
    const luxon = DateTime.fromISO(date)
    if (luxon.invalid) {
      return DateTime.local()
    }
    return luxon
  }
asLuxon ( date ) { if ( ! date ) { return DateTime . local ( ) } const luxon = DateTime . fromISO ( date ) if ( luxon . invalid ) { return DateTime . local ( ) } return luxon }
Convert an iso date string to a Luxon DateTime.
Convert an iso date string to a Luxon DateTime .