Favorites

JavaScript Date.prototype.toLocaleTimeString() Method

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee
Date.prototype.toLocaleTimeString()
JavaScript Date Instance methodThis method is supported by all modern browsers.
Updated 28th November 2026

The toLocaleTimeString() method formats the time part of a Date for a given language and region.

Description

The toLocaleTimeString() method returns the time part of the date formatted for a locale, including the choice of 12- or 24-hour clock. Pass { hour: '2-digit', minute: '2-digit' } to leave out the seconds, and timeZone to show the time in another zone.

The hour12 option forces a 12- or 24-hour clock regardless of the locale's usual choice, and timeZoneName: 'short' adds an abbreviation such as "ACDT". As with dates, reuse an Intl.DateTimeFormat when formatting many times.

For showing both the date and the time together, toLocaleString() combines them, and the dateStyle and timeStyle options give consistent preset formats.

Syntax

date.toLocaleTimeString()
date.toLocaleTimeString(locales, options)

Parameters

  • localesOptional. A language tag.
  • optionsOptional. Options such as hour, minute, hour12 and timeZone.

Return Value

A string with the time part formatted for the language.

Example

const d = new Date(Date.UTC(2026, 10, 28, 14, 5));
console.log(d.toLocaleTimeString('en-US', { timeZone: 'UTC' }));
console.log(d.toLocaleTimeString('en-GB', { timeZone: 'UTC' }));
console.log(d.toLocaleTimeString('en-AU', { hour: '2-digit', minute: '2-digit', timeZone: 'Australia/Adelaide' }));

Browser Support

The following information will show you the current browser support for the Date.prototype.toLocaleTimeString() method. Hover over a browser icon to see the version that first introduced support for this method.

This method is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee