I have a couple of areas of a form that use this code:
DateTimeField2.rawValue = Num2Date(Date2Num(xfa.event.newText, "M/D/YYYY")+30,"MM/DD/YYYY");
Essentially allows you to pick a date which then determines a future date 30 days from the date you chose. Seem simple enough however the date calculated is always off? So if I pick 7-1-2010 it chooses 7-31-2010, if I choose 2-1-2010 it picks 3-3-2010.
I am totally stumped as to why this is occurring and I'm against a wall to make it work. Does anyone have any suggestions?