Mahesh Thumar
Mahesh Thumar

Reputation: 4395

How do we convert moment date in to a date object?

I have a manipulated date using moment as moment().subtract(10, 'days'). I need this date in java Script date object.

Upvotes: 1

Views: 78

Answers (1)

Hardy Mathew
Hardy Mathew

Reputation: 714

you can use moment().subtract(10, 'days').toDate().

Upvotes: 2

Related Questions