JavaScript Intl Complete Reference Read Courses Practice Improve Improve Improve Like Article Like Save Article Save Report issue Report Intl in JavaScript is an object which is used for ECMAScript Internationalization API namespace. Intl.function() Example 1: Below examples illustrate the IntlDateTimeFormatprototyperesolvedOptions() method in JavaScript: Javascript <script> const geeks = new Intl.DateTimeFormat('zh-CN', { timeZone: 'UTC' }); const result = geeks.resolvedOptions(); console.log(result.locale); console.log(result.calendar); console.log(result.timeZone); const geeks1 = new Intl.DateTimeFormat('LT'); const result1 = geeks1.resolvedOptions(); console.log(result1.locale); console.log(result1.calendar); </script> Output: zh-CN gregory UTC lt gregory JavaScript Intl Methods: The complete list of JavaScript Intl methods are listed below: Method Description Example resolvedOptions() The locale and collation options are computed during the initialization of this Collator object. Try supportedLocalesOf() It can be collated without resorting to the runtime’s default locale. Try getCanonicalLocales() Returns an array containing the canonical locale names. Try format() Returns a string with a language-specific representation of the list. Try resolvedOptions() The location and style formatting choices were made when the current IntlListFormat object was built. Try formatToParts() Format a list of values in a locale-aware fashion. Try supportedLocalesOf() The provided locales are supported in list formatting. Try supportedLocalesOf() The provided locales are supported in date and time formatting. Try resolvedOptions() The locale, date, and time formatting options are computed during the initialization of this DateTimeFormat object. Try formatRangeToParts() The formatted date range is produced by DateTimeFormat formatters. Try format() The locale and formatting options of this IntlDateTimeFormat object. Try formatRange() The locale and options provided when instantiating IntlDateTimeFormat object. Try formatToParts() Allows locale-aware formatting of strings produced by DateTimeFormat formatters. Try Learn to code easily with our course Coding for Everyone. This course is accessible and designed for everyone, even if you're new to coding. Start today and join millions on a journey to improve your skills!Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now! Commit to GfG's Three-90 Challenge! Purchase a course, complete 90% in 90 days, and save 90% cost click here to explore. Last Updated : 25 May, 2023 Like Article Save Article Previous JavaScript Window getComputedStyle() Method Next W3.CSS Effects Share your thoughts in the comments Add Your Comment Please Login to comment...