getParsedValue()

The getParsedValue() function (client-side and server-side) retrieves and parses a date and time value from a date and time field. If used with other field types, this function behaves like getValue().

Syntax

Use this syntax for the getParsedValue() function:

            getParsedValue('QUESTION_CODE', 'ANSWER_CODE'); 

          

Return Value

The getParsedValue() function returns a JavaScript Date object that represents the date value found in the specified field.

Parameters

Note:

All parameters are required.

The getParsedValue() function accepts the following parameters:

  • QUESTION_CODE (string) - Specifies the code of the question associated with the date answer. You can find the code in the Code field on the question record.

  • ANSWER_CODE (string) - Specifies the code of the answer that stores the date. You can find the code in the Code field on the answer record.

Examples

The following examples show how to use the getParsedValue() function.

Retrieving Information from a Date Field

This examples retrieves the date from the INPUT_BOX/DATE question and answer combination.

              const date = getParsedValue('INPUT_BOX', 'DATE');
console.log(date); 

            

Assuming the date in the field is March 27, 2026, the resulting output may look like this:

              Fri Mar 26 2026 11:45:55 GMT+0100 (Central European Standard Time) 

            

Related Topics

General Notices