- I have date like
2022-09-18T18:30:00Z - I want last date of the month
- I'm using below snippet
moment(`2022-09-18T18:30:00Z`).clone().endOf('month').utc()
I'm using Node.js and it's working in my local, but not in my live server. It doesn't gives me UTC time instead gave me 2022-09-30 23:59:59