Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi:
I need to calculate the age based on the DOB (format: YYYY-MM-DD) that I pull out from my DB. FieldName "MBR_DOB". Any ideas will be greatly appreciate.
Thanks
Hi,
well you can try an expression like that:
Year(Today()) - Num(Left(MBR_DOB,4))
Hope it helps
regards
Giampiero
There is a date and time funcition AGE
Hi,
well you can try an expression like that:
Year(Today()) - Num(Left(MBR_DOB,4))
Hope it helps
regards
Giampiero
Thanks Giampiero:
Work perfectly. Thanks a lot.
Best Regards
CyberDan
Hi,
Glad to helped you.
Honestly, I think Alexandros solution is better than mine.
Try this way:
Age(Today(),MBR_DOB)
It should work.
Best regards
Giampiero
Both options work fine. Thanks Alexandros for your help
Thanks for your time.
CyberDan