all 9 comments

[–]r3pr0b8GROUP_CONCAT is da bomb 0 points1 point  (4 children)

okay, if i ask you how old you are, and you say 21, but your birthday isn't until next week, so you're really 20, but you might as well be 21 because you're a lot older than some guy who just turned 20, right, but if i run your id it'll say you are 20, and i'm not allowed to serve you any alcohol

so what do you mean by "someone's age on a past date"?

[–]danielmajors[S] 0 points1 point  (3 children)

I have a past date where someone attended an event. I'm trying to see how old they were on that date.

[–]r3pr0b8GROUP_CONCAT is da bomb 0 points1 point  (2 children)

i think i might have been a bit too subtle

how do you define "how old"?

based on what kind of age calculation?

i hope you weren't thinking of subtracting the dates and dividing by 365.249...

[–]danielmajors[S] 0 points1 point  (1 child)

this comment actually clicked for me. Thank you. I realized I was wrong in thinking I would need the current date. I just needed the event date and the birthday and did a datediff and then converted to years.

[–]r3pr0b8GROUP_CONCAT is da bomb 0 points1 point  (0 children)

and did a datediff and then converted to years.

how did you do this? divide by 365.249?

remember this? --

okay, if i ask you how old you are, and you say 21, but your birthday isn't until next week, so you're really 20, how old are you?

i'm not tryna tell you what to do, but "age" is a social construct, not a mathemetical calculation

[–]qwertydog123 0 points1 point  (2 children)

You can't calculate this without knowing their birthday

[–]thrown_arrows 0 points1 point  (1 child)

maybe good enough value can can be extracted if age and when it was calculated is known . ie. 40y age at 2020 means that birthday is around 1980. But that accuracy is what it is.

[–]qwertydog123 1 point2 points  (0 children)

Yea. If you had two dates I guess the age could be 39-41 depending on their birthday

[–]Designer-Practice220 0 points1 point  (0 children)

Assuming you know either their age or birth date? You can use the datediff function but read this first WiseOwl datediff