Skip to content

Conversation

furkhail
Copy link

console.log(format, date);
console.log(Moment(date, format).toDate());
console.log(new Date(Moment(date).format(format)));
return Moment(date,format).toDate();

That log shows this:

YYYY-MM-DD 1984-10-19
1984-10-18T22:00:00.000Z
1984-10-19T00:00:00.000Z

This PR should solve that.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.368% when pulling 57bc412 on Feeld:master into 2a209bd on xgfe:master.

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

Successfully merging this pull request may close these issues.

2 participants