mini-effect
    Preparing search index...

    Function isoDateTime

    • Creates an ISO date time validation action.

      Format: yyyy-mm-ddThh:mm

      Hint: The regex used cannot validate the maximum number of days based on year and month. For example, "2023-06-31T00:00" is valid although June has only 30 days.

      Hint: The regex also allows a space as a separator between the date and time parts instead of the "T" character.

      Type Parameters

      • TInput$1 extends string

      Returns IsoDateTimeAction<TInput$1, undefined>

      An ISO date time action.

    • Creates an ISO date time validation action.

      Format: yyyy-mm-ddThh:mm

      Hint: The regex used cannot validate the maximum number of days based on year and month. For example, "2023-06-31T00:00" is valid although June has only 30 days.

      Hint: The regex also allows a space as a separator between the date and time parts instead of the "T" character.

      Type Parameters

      Parameters

      • message: TMessage

        The error message.

      Returns IsoDateTimeAction<TInput$1, TMessage>

      An ISO date time action.