local string method

Solutions on MaxInterview for local string method by the best coders in the world

showing results for - "local string method"
Henry
02 Jan 2021
1console.log(date.toLocaleString('en-US', {
2    weekday: 'short', // long, short, narrow
3    day: 'numeric', // numeric, 2-digit
4    year: 'numeric', // numeric, 2-digit
5    month: 'long', // numeric, 2-digit, long, short, narrow
6    hour: 'numeric', // numeric, 2-digit
7    minute: 'numeric', // numeric, 2-digit
8    second: 'numeric', // numeric, 2-digit
9}));
10 // Output: Tue, July 21, 2020, 10:01:14 AM