Function formatISODate

  • Formats a value into an ISO 8601 string if it represents a valid date.

    Parameters

    • value: DateInput

      Value to format as an ISO 8601 string

    Returns string

    ISO 8601 string representation, or undefined if the input is invalid