Sets or gets the mobile date picker's timezone.
The mobile date picker's timezone is set in IANA timezone format.
You can set the timeZone
to avoid discrepancies if the site visitor and your
site are in different timezones. timeZone
affects:
- How the date picker reads and returns dates in code and in collections.
- What the data picker considers to be today's date, past dates, and future dates.
For example:
- December 12th in Argentina might already be December 13th in Spain. If you want to disable
this date in the date picker with code, explicitly set the timezone so it's clear
which timezone to use.
- If a hotel disables past dates so they can't be booked, make sure to set the timezone to
the hotel's timezone.
When working with collections, it's useful to save the dates in your site's timezone so that when
viewing the data from the collection,
the dates are correct for your timezone.