JavaScript Intl DateTimeFormat supportedLocalesOf() Method Last Updated : 24 May, 2023 Comments Improve Suggest changes Like Article Like Report The Intl.DateTimeFormat.supportedLocalesOf() method is an inbuilt method in JavaScript that returns an array containing those of the provided locales that are supported in date and time formatting. Syntax: Intl.DateTimeFormat.supportedLocalesOf(locales, options) Parameters: This method accepts two parameters as mentioned above and described below: locales: This parameter holds a string with a BCP 47 language tag or an array of such strings.options: It is an optional parameter. It is an object that has localeMatcher property. localeMatcher is the locale-matching algorithm to use. It has the values "lookup" and "best fit". Return value: This method returns an array of strings representing the subset of the given locale tags that are supported in date and time formatting. The below examples illustrate the Intl.DateTimeFormat.supportedLocalesOf() method in JavaScript: Example 1: In this example, we will see the use of the Intl.DateTimeFormat.supportedLocalesOf() method in JavaScript. javascript <script> const geeks = ['ban', 'id-u-co-pinyin', 'de-ID']; const result = { localeMatcher: 'lookup' }; let val = Intl.DateTimeFormat.supportedLocalesOf(geeks, result); console.log(val[0], val[1]); </script> Output: "id-u-co-pinyin" "de-ID" Example 2: In this example, we will see the use of the Intl.DateTimeFormat.supportedLocalesOf() method in JavaScript. javascript <script> const geeks = ['ban', 'id-u-co-pinyin', 'de-ID']; let val = Intl.DateTimeFormat.supportedLocalesOf(geeks); console.log(val); </script> Output: ["id-u-co-pinyin", "de-ID"] We have a complete list of Javascript Intl methods, to check those please go through the Javascript Intl Complete Reference article. Supported Browsers: The browsers supported by Intl.DateTimeFormat.supportedLocalesOf() method are listed below: Google Chrome 24 and aboveEdge 12 and aboveFirefox 29 and aboveOpera 15 and aboveSafari 10 and above Comment More infoAdvertise with us Next Article JavaScript Intl DateTimeFormat supportedLocalesOf() Method S SHUBHAMSINGH10 Follow Improve Article Tags : JavaScript Web Technologies JavaScript-Methods JavaScript-Intl Similar Reads SimpleDateFormat toLocalizedPattern() Method in Java with Examples The toLocalizedPattern() Method of SimpleDateFormat class is used to return a localized pattern formatted string describing this date format. In other words a particular date is converted to a local pattern such as M/d/yy h:mm a. Syntax: public String toLocalizedPattern() Parameters: The method does 2 min read JapaneseChronology localDateTime() method in Java with Example The localDateTime() method of java.time.chrono.JapaneseChronology class is used to retrieve the local date and time according to Japanese calendar system from any other object of temporal accessor. Syntax: public ChronoLocalDateTime localDateTime (TemporalAccessor temporal) Parameter: This method ta 2 min read ChronoZonedDateTime toLocalDate() method in Java with Examples The toLocalDate() method of a ChronoZonedDateTime class is used to convert this ChronoZonedDateTime to the LocalDate. Syntax: default LocalDate toLocalDate() Parameters: This method do not accepts any parameter. Return value: This method returns LocalDate which is the same LocalDate represented by t 1 min read ChronoLocalDateTime toLocalDate() method in Java with Examples The toLocalDate() method of a ChronoLocalDateTime interface is used to convert this ChronoLocalDateTime to an LocalDate. The method returns the LocalDate part of this ChronoLocalDateTime. Syntax: default LocalDate toLocalDate() Parameters: This method do not accept any parameter. Return value: This 1 min read LocalDateTime toLocalDate() method in Java with Examples The toLocalDate() method of LocalDateTime class is used to get the LocalDate representation of this LocalDateTime. This method is derived from the Object Class and behaves in the similar way. Syntax: public LocalDate toLocalDate() Parameter: This method takes no parameters. Returns: This method retu 1 min read ChronoZonedDateTime toLocalDateTime() method in Java with Examples The toLocalDateTime() method of a ChronoZonedDateTime interface is used to convert this ChronoZonedDateTime to the LocalDateTime. Syntax: default LocalDateTime toLocalDateTime() Parameters: This method do not accepts any parameter. Return value: This method returns LocalDateTime which is the same Lo 1 min read ChronoLocalDateTime toLocalTime() method in Java with Examples The toLocalTime() method of a ChronoLocalDateTime interface is used to convert this ChronoLocalDateTime to an LocalTime. The method returns the LocalTime part of this ChronoLocalDateTime. Syntax: default LocalTime toLocalTime() Parameters: This method do not accept any parameter. Return value: This 1 min read ThaiBuddhistDate atTime() method in Java with Example The atTime() method of java.time.chrono.ThaiBuddhistDate class is used to get the ThaiBuddhist date and time according to ThaiBuddhist calendar system from another TemporalAccessor object. Syntax: public ChronoLocalDateTime atTime(LocalTime localTime) Parameter: This method takes the object of type 2 min read ChronoZonedDateTime toLocalTime() method in Java with Examples The toLocalTime() method of a ChronoZonedDateTime class is used to convert this ChronoZonedDateTime to the LocalTime. Syntax: default LocalTime toLocalTime() Parameters: This method do not accepts any parameter. Return value: This method returns LocalTime which is the same LocalTime represented by t 1 min read ThaiBuddhistChronology localDateTime() method in Java with Example The localDateTime() method of java.time.chrono.ThaiBuddhistChronology class is used to retrieve the local date and time according to ThaiBuddhist calendar system from any other object of temporal accessor. Syntax: public ChronoLocalDateTime localDateTime (TemporalAccessor temporal) Parameter: This m 2 min read Like