Add Months to a date field - InfoPath Dev
in

InfoPath Dev

Add Months to a date field

Last post 11-13-2013 01:20 PM by wilkies0106aw. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-12-2013 04:07 AM

    Add Months to a date field

     Hi,

     I would like to add a date reminder field to my InfoPath that is the date in field Date Registered ANV plus 36 months (field Months).

     http://office.microsoft.com/en-gb/windows-sharepoint-services-help/examples-of-common-formulas-HA010105479.aspx#BM2

     I have used the formula listed here, but get an error message to say the operand is not an expression.

     =DATE(YEAR([Date Registered ANV]),MONTH([Date Registered ANV])+[Months],DAY([Date Registered ANV]))

     Is anyone able to point out where I am going wrong please?

    The other formula I tried is addDays(Date Registered ANV, 1095)  for the number of days in 3 years, however it then takes 1 day off the registered date and I need it to be exactly 3 years to the date.

    Thank you

     

  • 11-13-2013 01:20 PM In reply to

     Altering the following gives you one option - http://www.hornerit.com/2010/10/infopath-date-calculations-and-date.html

    I've attached a version for you. Test

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.