GlideSystem - nowDateTime()

Gets the current date and time in the user-defined format.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
String The current date and time in the user-defined format.

current.u_target_date = gs.nowDateTime();

When setting a variable in a workflow script to the current date and time, use the setDisplayValue() method. The following script sets the workflow variable end_date to the current date and time.

current.variables.end_date.setDisplayValue(gs.nowDateTime());