I am trying to get the last day of a month, it worked but it displays a very long description and I just need the day.
My code is this one:
var today = new Date();
var data = new Date(today.getFullYear(), today.getMonth()+1, 0);
and it returns
Sat Apr 30 2022 00:00:00 GMT-0400
But I just want to get the 30... only that
how can I do it? Thanks