cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
Get the free JMP Student Edition for qualified students and instructors at degree granting institutions.
Choose Language Hide Translation Bar
View Original Published Thread

Functions to calculate the number of years, months, or days between one date and another

You can use the Date Difference function of the date function.
This function allows you to find the difference between two date-time values ​​in a specified unit (days, months, years).


For example, to find the difference in years between the date-time values ​​in two columns, "Start Date" and "End Date," create the following function:
The third argument, Year, can also be specified as Month or Day to represent the number of months or days.
The fourth argument, actual, indicates that you want the actual interval.


In addition, you can specify start (calculate the difference at the beginning of the period) and fractional (calculate the decimal part of the interval).

undefinedDate Difference 関数


This post originally written in Japanese and has been translated for your convenience. When you reply, it will also be translated back to Japanese.

Details