Previous Topic: ca_pam_getDateFieldValue(_id)Next Topic: ca_pam_setDateFieldMaxValue(_id, val)


ca_pam_getDateFieldValueInMillis(_id)

Returns the value of a Date field as a long integer (for example, 61238000). This integer represents the number of milliseconds before or after January 1, 1970 00:00:00 UTC (known as the UNIX Epoch).

Input Parameters
_id (string)

Defines the unique identifier of a Date field.

Return Value

Date value for a Date field that is expressed as a long integer.

Example
ca_pam_getDateFieldValueInMillis('Form.DateofBirth')

This example returns the value for the DateofBirth field as a numeric string measured in milliseconds. For a Date field with a value of 08/22/1965, this function would return -132307200000 (that is, -132,307,200,000 or -132 billion milliseconds).

The ca_pam_getDateFieldValueInMillis function returns a positive result for dates on or after January 1, 1970.