:If you don't use a build tool, you can link directly to the file via jsDelivr or cdnjs. Use the following script tag: Use code with caution.
const moment = require('moment-timezone'); // or import moment from 'moment-timezone'; Use code with caution.
: A smaller file containing data for +/- 5 years from the current date. Why use the "With-Data" Version? Moment.jshttps://momentjs.com Moment Timezone | Docs moment-timezone-with-data.js download
In your code, you can then import it with the data already included: javascript
Note: This link automatically includes the base Moment.js library functions . :If you don't use a build tool, you
Depending on your project setup, there are three primary ways to get the file:
: Includes all years available in the IANA database. : A smaller file containing data for +/-
If you are looking for the , you are likely trying to handle complex time conversions between different geographical regions. While Moment.js is now considered a legacy project in maintenance mode, it remains a standard for thousands of existing applications that require the IANA Time Zone Database . What is moment-timezone-with-data.js?