Answers for "javascript strftime"

0

javascript strftime

Arguments of toLocaleString method can also configure the format of the dates. This is supported in modern browser versions,
you can see more information here:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString#browser_compatibility.

let date = new Date(Date.UTC(2015, 5, 27, 12, 0, 0))
, options = {weekday: 'short', month: 'short', day: 'numeric' };
console.log(date.toLocaleString('es-ES', options)); //sáb. 27 de jun.
Posted by: Guest on June-28-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language