getting am1 in javascript tolocalestring code example Example: toLocalString Data.prototype.toLocaleString()