Subtacting a day from today() - InfoPath Dev Sign in | Join | Help in Code InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » Code » Subtacting a day from today() Subtacting a day from today() Last post 09-19-2009 06:39 PM by Michael71. 4 replies. Page 1 of 1 (5 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 09-19-2009 07:59 AM Michael71 Joined on 10-07-2006 Mclean, Virginia-USA Posts 283 Subtacting a day from today() Reply Contact I've tried to subtract 1 day from today in XPath, but haven't gotten it to work. I used today() - 1, but this certainly did not work. I just want to subtract 1 day from today in a XPath function. 09-19-2009 09:48 AM In reply to Jimmy Joined on 07-03-2008 Posts 2,595 Re: Subtacting a day from today() Mark as Not AnswerMark as Answer... Reply Contact In InfoPath 2007, addDays(today(), -1) should work.In InfoPath 2003 you will most likely need to use code. Jimmy Rishe / Software Developer / Microsoft MVPQdabra Software 09-19-2009 11:28 AM In reply to Michael71 Joined on 10-07-2006 Mclean, Virginia-USA Posts 283 Re: Subtacting a day from today() Mark as Not AnswerMark as Answer... Reply Contact Will I need to use C# or VB code and if so will this have to be a Administrator approved form on to the SharePoint 2007 portal. 09-19-2009 02:12 PM In reply to Patrick Halstead Joined on 08-08-2006 Posts 5,112 Re: Subtacting a day from today() Mark as Not AnswerMark as Answer... Reply Contact No code needed. There's a function called addDays which lets you add a -1. Create a rule that sets a value when the first date is inputted. For the value, select the Fx and insert the addDays function with the correct parameters (date node and -1). Easy money. Patrick HalsteadProject Manager at Qdabra 09-19-2009 06:39 PM In reply to Michael71 Joined on 10-07-2006 Mclean, Virginia-USA Posts 283 Re: Subtacting a day from today() Mark as Not AnswerMark as Answer... Reply Contact I'm using Infopath 2003. All I want to do is set @reportdate = today()-1 AddDays is not avaible in InfoPath 2003. Can you point me to the right direction on the code nto add or post the code to do this. I only need the today()-1 part. Thanks. Page 1 of 1 (5 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
I've tried to subtract 1 day from today in XPath, but haven't gotten it to work. I used today() - 1, but this certainly did not work. I just want to subtract 1 day from today in a XPath function.
In InfoPath 2007, addDays(today(), -1) should work.
In InfoPath 2003 you will most likely need to use code.
No code needed. There's a function called addDays which lets you add a -1. Create a rule that sets a value when the first date is inputted. For the value, select the Fx and insert the addDays function with the correct parameters (date node and -1). Easy money.
I'm using Infopath 2003. All I want to do is set @reportdate = today()-1
AddDays is not avaible in InfoPath 2003. Can you point me to the right direction on the code nto add or post the code to do this. I only need the today()-1 part. Thanks.