skip to Main Content

Javascript – How to subtract two dates and time in Node.js?

I want to achieve the following when I cancel my subscription: nextBillingTime: 2024-05-10T14:59:58.582+00:00 paypalSubscriptionCancelledAt: 2024-05-07T11:59:18.000+00:00 subscriptionPeriodDuration: 3 days, 3 hours, 0 minutes, 40 seconds I have the following code: paypalRouter.post("/cancel-subscription/webhook", async (req, res) => { try { const webhookEvent =…

VIEW QUESTION
Back To Top
Search