Perfect. Refactor to pass a dynamic string that is assumed to be a valid IANA time zone identifier. After that use .isValid()
to safely return null
when the date can’t be parsed in the time zone.
Perfect. Refactor to pass a dynamic string that is assumed to be a valid IANA time zone identifier. After that use .isValid()
to safely return null
when the date can’t be parsed in the time zone.