Created by ajeet kanojiaLinked to 61.2m issues across 243 teams
Date#toLocaleDateString method. This method allows you to specify the language whose formatting conventions should be used, and to create locale-specific rendering. You can specify the representation of the day, weekday, year, month, and hour. Possible values for each of these are "numeric" (day, year, month, hour, minute, second), "2-digit" (day, year, month, hour, minute, second), "narrow" (weekday, month), "short" (weekday, month), and "long" (weekday, month).