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