Date Difference

Results 1 to 2 of 2

Thread: Date Difference

  1. #1
    Join Date
    Dec 1969

    Default Date Difference

    Hello All<BR><BR>Could someone pls guide me, how to find the date difference, in days, between any two given dates in mm/dd/yyyy format in JAVASCRIPT.<BR><BR>Thanks<BR>Az

  2. #2
    Join Date
    Dec 1969

    Default RE: Date Difference in JS...

    One way:<BR><BR>millisecs = Date.parse("...") - Date.parse("...");<BR>daysDiff = millisecs / ( 1000 * 3600 );<BR><BR>Note that you&#039;ll get NaN from Date.parse if either of the string dates used are not valid dates.<BR><BR><BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts