I have two time without date
var startTime="12:16:59 am";
var endTime="06:12:07 pm";
I want to show the total hours in between the above times by using moment.js.
If it's not possible in moment.js
then please let me know using by javascript
.
Inputs:
var startTime="01:30:00 am";
var endTime="2:45:07 pm";
Expected Output:
1 hour and 15 minutes
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…