Add a day to today()

L

LAEvans

How can I add a day to the today() function. I do not have the addDays
function and am having difficulty understanding where and how to put this in
the form. Keep in mind that I am very (2 days) with InfoPath.

Thank you in advance for your time!
 
C

Clay Fox

Two ways to do this with IP 2003, neither real nice. The best method is just
to use a bit of code.
You can use the datediff function in VBScript. There are several examples
at http://www.infopathdev.com Just search on Datediff.

The other, low tech method is break the date down into its components,
increment the day and then put it back together, but this can lead to bad
dates say when it is the 31st unless you build some other logic/rules to know
when to change the month. This can be done with substring functions.

--
Thanks

Clay Fox

Qdabra Software
http://www.qdabra.com

InfoPathDev.Com
The Largest InfoPath Forum in the World
http://www.infopathdev.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top