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.
It returns a
Dateobject from a datestringadjusted on the user timeZone, if a timeZone is not provided we try getting it from theIntlbrowwser native API. It gracefully falls back returning a non-timezone-basedDate.