About 10,400,000 results
Open links in new tab
  1. Get difference between 2 dates in JavaScript? - Stack Overflow

    Get difference between 2 dates in JavaScript? [duplicate] Asked 15 years, 5 months ago Modified 1 year, 7 months ago Viewed 1.5m times

  2. javascript - How to calculate the number of days between two …

    I am calculating the number of days between the 'from' and 'to' date. For example, if the from date is 13/04/2010 and the to date is 15/04/2010 the result should be How do I get the result using …

  3. Basic BMI Calculator HTML/Javascript - Stack Overflow

    This Stack Overflow page provides a simple BMI calculator using HTML and JavaScript.

  4. javascript - Age calculation - Stack Overflow

    Having 2 javascript Dates, first is birthdate and second is a date to calculate age from that date. What should be the best way to do this.

  5. Calculator in JavaScript - Stack Overflow

    I can't find a good calculator in JavaScript. In a first time I was using the eval function on my datas to get my result but there were mistakes. So I found this code: function calculate (input) {...

  6. Calculate age given the birth date in the format YYYYMMDD

    Oct 31, 2010 · I of course couldn't resist the urge to take up the challenge and make a faster and shorter birthday calculator than the current accepted solution. The main point for my solution, …

  7. How to calculate date difference in JavaScript? [duplicate]

    Oct 14, 2011 · I want to calculate date difference in days, hours, minutes, seconds, milliseconds, nanoseconds. How can I do it?

  8. How to code a calculator in JavaScript without 'eval'

    Apr 4, 2023 · 15 For a simple calculator with only 5 operators (^, *, /, +, -) and no parentheses, you can do something like this. First, it is convenient to turn the string into an array of numbers …

  9. javascript - Function to calculate distance between two …

    What you're using is called the haversine formula, which calculates the distance between two points on a sphere as the crow flies. The Google Maps link you provided shows the distance …

  10. javascript - factorial of a number - Stack Overflow

    I've seen a recursive approach used in many places (Eloquent JavaScript etc). Here, the function is called recursively until it reaches 0, which should not be the case. We should only call the …