BA_getDateValue

The use of this function requires the Power Actions add-on be installed and licensed.

Description

This will retrieve a date value from the argv array. Note that for the date time picker, the value in the argv variable uses the user's time zone. BA_getDateValue will convert this value from the user's time zone to the server time zone.

Parameters

Return Type

Date

Example

For the Date type fields let's assume we have the following script:

BA_createDatePicker("Start Date", currentDate(), false, true, "Required DatePicker");

The date selected in the DatePicker field created above can be obtained in the execution script using the following code:

date res = BA_getDateValue(argv, "Start Date");

See also