Thread
: [Solved]
Calculating age of something from a Date Picker
View Single Post
01-13-2014, 02:40 AM
BoringDavid
Windows XP
Office 2010 32bit
Novice
Join Date: Sep 2013
Posts: 19
Quote:
Originally Posted by
macropod
That's because your second date is in the 21st year after the first date. Try using:
Code:
c = DateDiff("yyyy", DTPStartDate.Value, Date) - 1
Thank you that has corrected the code.
BoringDavid
View Public Profile
Find all posts by BoringDavid