Circle V2 API Docs
    Preparing search index...
    • Resolve a date input to a Date. When the input lacks timezone info (e.g. "04/24/2026 12:02 PM" or a date-only ISO "2024-02-01"), interpret it in facilityTimeZone rather than the server's local timezone.

      • Strings containing T are tried with parseISO first (full ISO 8601).
      • Other strings fall through to a list of known formats parsed against a TZDate reference in the facility timezone.

      Returns null if parsing fails.

      Parameters

      • dateInput: string | Date | null | undefined
      • OptionalfacilityTimeZone: string

      Returns Date | null