Did you really have to be a total douche about it? Found inside – Page 73getTime()) / 1000; day_diff = Math.floor(diff / 86400); if ... 0 && ( diff < 60 && "just now" || diff < 120 && "1 minute ago" || diff < 3600 && Math.floor( ... // Get the current timestamp now.getTime(); Copy. You can do as follows: Get difference of dates (Difference will be in milliseconds) Convert milliseconds into minutes i-e ms/1000/60 The Code... Found inside – Page 337C The getTime ( ) and setTime ( ) methods As you saw in Session 16 ( in the ... method This method returns the time difference , in minutes , between the ... If you want to know more about javascript date and time methods, you may like following date and time methods: ... javascript difference between two dates in days hours and minutes. Found insidedocument.write("
Final milliseconds=",theDate.getTime() ... 7.129 Setting the Minutes with the setUTCMinutes() Method