local-dateAdded by IBM on October 10, 2012 | Version 1 (Original)
|Determines the local date in the user’s time zone. For example, on October 13, 2006 local-date() would have returned 2006-10-13-08:00 (if the timezone is PST).
A number representing the result of now() is converted to a local date based on the user’s time zone. If no time zone information is available, then only the date portion of the result of now() is returned. The timezone information is omitted.
The following buttons submits a purchase order form. When the button is clicked, the actions are triggered in order. First, the xforms:setvalue action uses the local-date function to record the local date of submission. Then, the xforms:send action submits the form to the server.
<xforms:setvalue ref="timeStamp" value="local-date()"/>