Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
16 lines (12 sloc) 332 Bytes
title version signature
Date
1.0.0
moment(Date);

You can create a Moment with a pre-existing native Javascript Date object.

var day = new Date(2011, 9, 16);
var dayWrapper = moment(day);

This clones the Date object; further changes to the Date won't affect the Moment, and vice-versa.

You can’t perform that action at this time.