How to use the XPath function date-time-add-days() ?

0
libis posted this 02 March 2018

Here is a very simple question. I hope the answer is simple too... I just want to display X days after an XML datetime field.

4 Posts
4 Points
3 Comments
Order By: Standard | Newest | Votes
0
jles posted this 04 March 2018

Hi,

You can use the 'date-time-add-days' XPath function, for example the following XPath snippet adds 3 days to the invoice date field: date-time-add-days(InvoiceHeader/@InvoiceDate, 3)

When you bring up the XPath editor you can check all the XPath functions that are at your disposal.

Let me know if this helps.

Regards, Jure Leskovec

154 Posts
294 Points
0
libis posted this 05 March 2018

Hi Jude, This is the way I tried first but I get an error message in this case : date-time-add-days(PlanningVacationDTO/Extras/PlanningVacationExtraDTO/Jours/PlanningVacationJourDTO/Date,1) The message is : Échec de la fonction 'date-time-add-days()'

Where is my error ?

4 Posts
4 Points
0
admin posted this 06 March 2018

Hi,

Could you please send (attach) your template (if possible, with just this FIELD element) so that we take a look into it? Also, what is the version of the Add-In?

Thanks, Jure

12 Posts
21 Points

Our 225999 members have posted 342 times in 101 discussions