I have two strings:
1387050870
and
2012-12-15
How can i calculate the difference between these two dates in weeks (52)?
I tried Math.round(1387050870-(Math.round(new Date('2012-12-15').getTime()/1000))/604800)
, but that doesn't seem to work.