Last active
November 7, 2016 10:05
-
-
Save JesusMurF/e1c1398303bd7f7281fa to your computer and use it in GitHub Desktop.
How to get the hours between two dates with Moment.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var duration = moment.duration(end.diff(startTime)); | |
var hours = duration.asHours(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment