D doylie Registered User. Local time Today, 01:25 Joined Jul 25, 2002 Messages 22 Aug 7, 2002 #1 I have several dates in the format 01/02/1999. All I need to know is how to add seven days to this date so it reads 08/02/1999.?
I have several dates in the format 01/02/1999. All I need to know is how to add seven days to this date so it reads 08/02/1999.?
Drevlin Data Demon Local time Today, 01:25 Joined Jul 16, 2002 Messages 135 Aug 7, 2002 #2 If you added 7 days to 01/02/1999 you'd get 01/09/1999 you'd do this by: DateAdd("d", 7, "01/02/1999") But since you seem to want to add 7 months: DateAdd("m", 7, "01/02/1999") Look up DateAdd in Help and it will explain the function in detail.
If you added 7 days to 01/02/1999 you'd get 01/09/1999 you'd do this by: DateAdd("d", 7, "01/02/1999") But since you seem to want to add 7 months: DateAdd("m", 7, "01/02/1999") Look up DateAdd in Help and it will explain the function in detail.
simongallop Registered User. Local time Today, 01:25 Joined Oct 17, 2000 Messages 611 Aug 7, 2002 #3 Presume that you are using dd/mm/yyyy in which case use the DateAdd("d",... option.
Drevlin Data Demon Local time Today, 01:25 Joined Jul 16, 2002 Messages 135 Aug 7, 2002 #4 I apologize. I forget that people use different Date formats depending on their country. Typical American.
I apologize. I forget that people use different Date formats depending on their country. Typical American.
D doylie Registered User. Local time Today, 01:25 Joined Jul 25, 2002 Messages 22 Aug 7, 2002 #5 Cheers. The format was dd/mm/yyyy. English layout. No worries it worked a treat.