Function parseable

  • Checks if a given datetime string is according to the given format

    Parameters

    • dateTimeString: string

      The string to test

    • formatString: string

      LDML format string (see LDML.md)

    • allowTrailing: boolean = true

      Allow trailing string after the date+time

    • locale: PartialLocale = {}

      Locale-specific constants such as month names

    Returns boolean

    true iff the string is valid

    Throws

    nothing

Generated using TypeDoc