Open keithmichelson opened 6 years ago
let currentDateMoment = moment(currentDate) let numberOfDateMoment = currentDateMoment.add(numberOfDays, TimeUnit.Days) return numberOfDateMoment.date let current date is your from date how manys to added to number of days
I'm trying to get tomorrow's date like this, but it just returns today's.
moment().add(1, "days").format("MMMM do")
This works fine in Javascript moment().add(1, "days").format("MMMM Do")
Your Environment
Swift 4.0 Xcode Version 9.2 (9C40b)