How to get current date in Vflow 2?

Provide an example with steps.

7 Likes

In vFlow 2, the current date can be retrieved using the getCurrentDate() function, not getcurrentdate().

To understand this better, consider the following example:
In this example, I used a copy task to store the current date at a specific location.

  1. I created a task group called ‘currentDate’ and invoked it in the onLoad event of the page.
  2. Then, I created a task called ‘copyDate’:
  • In Copy From, I selected Type as JSON and used getCurrentDate().
  • In Copy To, I passed getVal("tempObject.current_date").

12 Likes