How can I find the difference of two dates in Javascript. and also how can I find the final date when a certain number of hours are substracted from the current time.
For example:
If I want to find the difference in days between 1st of Jan 2002 and today, how can I do it.
Another One:
If I reduce 5 hours say from 3am today, how can I find the resulting date and time.
any idea?
thanks in advance.
For example:
If I want to find the difference in days between 1st of Jan 2002 and today, how can I do it.
Another One:
If I reduce 5 hours say from 3am today, how can I find the resulting date and time.
any idea?
thanks in advance.