expected output using moment “2022-02-28”
What I’ve tried
const date = moment() .month(monthNumber) .days(dayNumber) .format("YYYY-MM-DD");
but that gives me something like “2022-03-17”
what am I doing wrong?
This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.