Skip to content
This repository has been archived by the owner on Feb 3, 2020. It is now read-only.

Get Tomorrow's date #102

Open
keithmichelson opened this issue Mar 13, 2018 · 1 comment
Open

Get Tomorrow's date #102

keithmichelson opened this issue Mar 13, 2018 · 1 comment

Comments

@keithmichelson
Copy link

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)

@charu3308
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants