dd instead of DD?
brandonscript opened this issue · comments
Brandon Shelley commented
Hey, just curious why you're not following the moment.js syntax for day of month? Moment.js is DD, whereas YLMoment is dd.
Yannick Loriot commented
Hi @r3mus,
The NSDateFormatter
uses the format patterns from the Unicode Technical Standard version tr35-31. The dd
is for the day of the month whereas the DD
is for the day of the year.
I know it could be confusing but I wanted to use the NSDateFormatter
to be fully compatible with the core foundation.
Brandon Shelley commented
Ahh, that's great - thanks for the clarification.