What the two fields mean
A is any date-time string JavaScript can parse — include time if you care about hours, not just the date. B is an IANA time zone such as America/New_York or Asia/Colombo. Leave B empty and the formatter falls back to UTC.
Output uses toLocaleString with locale en-US and your chosen zone. Daylight saving shifts are whatever the browser's ICU data applies for that zone on that instant — there is no separate DST checkbox.
What can go wrong
A misspelled zone name triggers “Invalid timezone or date”. This is not a meeting scheduler: it shows one formatted string, not a pair of clocks or a list of cities.
Questions
Where do I find valid zone names?
Use IANA identifiers from the tz database — Region/City form, not three-letter abbreviations alone.