Skip to content

toLocalDateString

Yousif Al-Raheem edited this page Jan 21, 2020 · 1 revision

Takes a date object and outputs a date string based on the user's locale

Example

console.log(toLocalDateString(new Date())); // Example output: "January 21, 2020"

Properties

Param Type Description
date Date The date object
Clone this wiki locally