Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | BA_getDateValue(argv, label) | Package | poweraction | Alias | | Pkg Usage | getDateValue(argv, label) | |
Description
Excerpt |
---|
|
This will retrieve a date value from the argv array. |
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
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
argv | String [] | Yes | The argv variable (predefined variable). | label | String | Yes | The label of the date/date time field. | |
Return Type
Date
Example
For the Date type fields let's assume we have the following script:
Code Block |
---|
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:
Code Block |
---|
date res = BA_getDateValue(argv, "Start Date"); |
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "pa_routine" and space = currentSpace ( ) |
---|
labels | array_routines |
---|
|