javascript date tolocalestring with format code example
Example 1: toLocaleDateString() options
new Date("1983-March-25").toLocaleDateString('fr-CA', { year: 'numeric', month: '2-digit', day: '2-digit' })
'03/25/1983'
Example 2: toLocalString
Data.prototype.toLocaleString()