by bufferoverflow · 6y ago · 0 comments
var options = { year: 'numeric', month: '2-digit', day: '2-digit'}; console.log(new Intl.DateTimeFormat('te-IN', options).format(new Date())); // outputs 16-09-2020
[0] https://github.com/noahcooper/SimpleDateFormatJS