12.10 SDK fieldAction: Now Date
This SDK function allows you to obtain and save today's date within any text, text area, date and datetime field.
By default (so without passing any parameter), the result will always be returned in the "d-m-Y" format, to obtain the date in a different format, the format will be passed as the only parameter of the function, to view the syntax of each available case in detail, consult the chapter ... of the process manual.
EXAMPLE OF USE
To better understand how it works, below is an example of using the SDK function date_now() to save today's date within a field of a process helper.
Inside the dynamic form we proceed with the creation of a date field called "Today's date" in which the result of the function will be saved.
Then we call the interested SDK function through the "Option Selection" picklist and access the "Date functions" section (Figure 1)
Figure 1
Finally, if necessary, we pass the format with which the date must be returned (Figure 2)
Figure 2
The result will be as shown in figure 3


