how news contextual inadequacy between twin timestamps javascript?
let's contend i've got twin strings javascript:
var date1 = '2008-10-03t20:24z'
var date2 = '2008-10-04t12:24z'
how i outcome so:
'4 weeks ago'
or
'in 15 minutes'
(should support past future).
there solutions out there past diffs, nonetheless i've nonetheless support destiny diffs well.
these solutions i tried:
bonus points jquery solution.
Comments
Post a Comment