Reputation: 4395
I have a manipulated date using moment as moment().subtract(10, 'days'). I need this date in java Script date object.
moment().subtract(10, 'days')
Upvotes: 1
Views: 78
Reputation: 714
you can use moment().subtract(10, 'days').toDate().
moment().subtract(10, 'days').toDate()
Upvotes: 2