Date
Create a Day.js object with a pre-existing native Javascript Date object.
js
var d = new Date(2018, 8, 18);
var day = dayjs(d);This clones the Date object. Further changes to the Date won't affect the Day.js object, and vice-versa.
