If you look at the moment.js documentation, however, those conversions are incorrect. The day tokens are actually getting replaced with month tokens. In that snippet of code above, "d" should really go to "DD" and "j" should really go to "D" in order to convert the values properly.