Hex Core JS
    Preparing search index...

    Function dateStringFilter

    • Returns a type filter function that returns the given value if value is of type string and, in ISO format, represents a valid date, otherwise returns the given defaultValue (defaulting to the current timestamp).

      Parameters

      • OptionaldefaultValue: string

        The value to return if the given value is not of type string or is not a valid ISO date string.

      Returns TypeFilter<string>