Today I stumpled over a DateAdd problem. I wondered because "DateAdd>thedate,D,1,result" did return the same day. But when I used "DateAdd>thedate,DD,1,result" the next day was returned.
Is ther a problem in the script manual examples?
DateAdd documentation error?
Moderators: Dorian (MJT support), JRL
Re: DateAdd documentation error?
Well I found the reason. Within the script I created a variable "d". Maybe it will help somebody else in the future.
- Dorian (MJT support)
- Automation Wizard
- Posts: 1390
- Joined: Sun Nov 03, 2002 3:19 am
- Contact:
Re: DateAdd documentation error?
You'd be surprised at how many times a single letter variable assignment has caused a problem like that. Well done for getting to the bottom of it. We never stop learning.
Yes, we have a Custom Scripting Service. Message me or go here