How to subtract from
year:2026 month:JAN day:26 - year:2025 month:NOV day:27 in JavaScript
My firstDate: year:2026 month:JAN day:26
My second date: year:2025 month:NOV day:27
So how can I find the difference between these two dates in JavaScript?
I was expecting to subtract them by using getTime() but it’s returning Invalid Date
Or another word is there another way to subtract dates in non UTC format?
If not how can I convert those dates to UTC format?
Note: I’m receiving those dates from API response and both dates are String