SwiftMoment icon indicating copy to clipboard operation
SwiftMoment copied to clipboard

Get Tomorrow's date

Open keithmichelson opened this issue 6 years ago • 1 comments

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)

keithmichelson avatar Mar 13 '18 03:03 keithmichelson

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

charu3308 avatar Feb 14 '19 11:02 charu3308