How can I escape a single quote (')?
I want to output a date in the format May 15 '19 but using the string MMM d '''yy outputs May 15 yy
Am I missing something?
We don't currently have a way to escape these
This looks more like a bug to me than an enhancement.. it's an incorrect parsing of the input.
When it comes to certain things, sometimes its best to stick to a certain way.,. add support for \ to escape or just use moments approach... '[' until ']'... 馃槮
P.S. also need a similar formatting of dd MMM 'yy
Semi annoying workable solution though
.toFormat(format.replace("'", "'|'")).replace("|", "'");
We ended up using this symbol: LLL鈥檡y
Most helpful comment
This looks more like a bug to me than an enhancement.. it's an incorrect parsing of the input.