Previous Topic: ca_pam_setDateFieldMinValue(_id, val)Next Topic: Lookup Field


ca_pam_setDateFieldValue(_id, val)

Sets the value of a Date field to a date string (for example, 05/15/2014). The value is set only if it is specified in the correct format (that is, in the format specified in the Date Format property of the Date field). If the value of this property is blank, then the value is set in the Date Format specified in the User settings.

Note: Pass the date in the correct format; otherwise it is not set.

Input Parameters
_id

Defines the unique identifier of a Date field.

val

Defines a date value that you specify (for example, 05/05/2014).

Return Value

None.

Example
ca_pam_setDateFieldValue('Form.DateArrival','05/05/2014');

This example sets the DateArrival field to 05/05/2014.