61
rated 0 times
[
65]
[
4]
/ answers: 1 / hits: 174075
/ 10 Years ago, thu, june 26, 2014, 12:00:00
I have for instance this datetime:
01:20:00 06-26-2014
and I want to subtract a time like this:
00:03:15
after that I'd like to format the result like this:
3 hours and 15 minutes earlier
.
How can I do that using moment.js
?
edit: I tried:
var time = moment( 00:03:15 );
var date = moment( 2014-06-07 09:22:06 );
date.subtract (time);
but the result is the same as date
Thanks
More From » momentjs