Date Calculations

S

Slo

Is infopath able to calculate a date in the future? Problem: I have a form
that requires a date to be entered. Then they have to enter the number of
months. Can I take the date entered and add 12 months and get a valid date?
 
S

Slo

Thanks for the response. I am using 2007. What I really need is adding
months to a date. Example: Taking a date that was entered with a 'date
picker' field. Then adding a month value that was entered by the user
(example 12 months). Then adding 12 months to the date entered to get the
valid mm/dd/yyyy in the future. I really don't think the 'days' calculation
is going to work for me. Because each month has a different number of days.
 
S

S.Y.M. Wong-A-Ton

You will have to write code for this. The DateTime object in C# and VB.NET
has an addMonths() method that you can use to get the future date you need.
 
Top