TRUECALC
Functions

TZVALID

TRUE if the text is a valid IANA zone name or fixed offset

Try it

When to use it

When should I use TZVALID before calling TZDATETIME or TZCONVERT?

Use TZVALID whenever the timezone string comes from user input or an external data source. Passing an unrecognised zone name to TZDATETIME or TZCONVERT will produce an error, so validating first lets you show a friendly fallback instead.

Does TZVALID accept fixed-offset strings like +05:30 as well as IANA names?

Yes. TZVALID returns TRUE for both canonical IANA names such as America/New_York and fixed-offset strings such as +05:30 or -08:00.

What does TZVALID return for an empty string or a misspelled zone?

TZVALID returns FALSE for any string that is not a recognised IANA zone name or valid fixed-offset string, including empty strings, typos like America/New_Yrok, and abbreviations like EST.

Use cases

Validate a fixed-offset zone string

Reject an unrecognised abbreviation

Used in

engineering · operations

Syntax

TZVALID(zone)

On this page