00:00I recently made a video on calculating a person's age using yearfrag function, but a subscriber
00:05recommended using dateif function. I'm here to compare and contrast the two functions. Let's go.
00:10This is how I use a dateDif function, equal dateDif. The first argument will be the date of birth.
00:16Second argument will be today's date using today function. The third argument will be, let's say,
00:21y for age calculation as in years. And that's how you calculate age of a person using dateDif.
00:26As for yearfrag, is equal yearfrag. First argument, similar to dateDif, is date of birth.
00:32And likewise, today's date using today function. And it just uses two arguments. As you can see,
00:38yearfrag displays years in fraction, while dateDif presents years in whole numbers here. Also,
00:43likewise, dateDif you can show in either years or month since the date of birth, or also in days,
00:49while yearfrag doesn't have that capability. I've been reading a lot of articles about dateDif not
00:54doing leap year. I don't think that is true. But what do you think? Leave a comment in the description
00:58below.
Comments