{ // example 1 let f = new Intl.DateTimeFormat('en'); let a = f.formatToParts(); console.log(a); } { // example 2 let f = new Intl.DateTimeFormat('hi'); let a = f.formatToParts(); console.log(a); }
{ // example 1 let f = new Intl.DateTimeFormat('en'); let a = f.formatToParts(); console.log(a); } { // example 2 let f = new Intl.DateTimeFormat('hi'); let a = f.formatToParts(); console.log(a); }