I am new to Xforms and need help setting the default date in nodeset binding. I need to set the default date to be current date + 30 days. How do I do this?
If you want the result to be an xs:dateTime, then the following will do the trick:
current-dateTime() + xs:dayTimeDuration('P30D')
0
votes
Figured it out. In the binding, I set the default for the date to days-to-date(days-from-date(local-date()) + 30). But this does not set the time though. And my field is of type xs:datetime.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more