Closed tute closed 11 years ago
Hi! How can we escape format characters? I've already got translated month names, but can't escape the second d:
d
new XDate().toString('d de MMMM') // "27 27e Abril" new XDate().toString('d \de MMMM') // "27 27e Abril"
How can I create "27 de Abril"?
Thanks for your library!
Found the answer in a previous issue:
... enclose your literal text in single quotes to make sure xdate doesn't confuse it for formatting characters...
Hi! How can we escape format characters? I've already got translated month names, but can't escape the second
d
:How can I create "27 de Abril"?
Thanks for your library!