最佳答案
I am using Moment.js to parse a string and get the day, month and year separately:
var date = moment("12-25-1995", "MM-DD-YYYY");
var day = date.day();
However, day
is not 25—it's 1. What is the correct API method?