kit
    Preparing search index...
    • It returns a Date object from a date string adjusted on the user timeZone, if a timeZone is not provided we try getting it from the Intl browwser native API. It gracefully falls back returning a non-timezone-based Date.

      Parameters

      • dateString: string = ""

        A parseable date as string, Z is automatically suffixed if not present to correctly get time zone based time from a UTC date.

      • OptionaltimeZone: string

        Optionally pass a timeZone (e.g. from user preference or from the server), it falls back trying to read it from the Intl browwser native API.

      Returns Date