setValueAsDate
setValueAsDate(
valueAsDate)

The setValueAsDate method defines the value of a NameValuePair object.

*
valueAsDate—a date containing the date and time value of a NameValuePair object.
Return value

None.

Example

The following example shows how to define the value component of a NameValuePair if the value is a date.

NameValuePair parm2 = new NameValuePairImpl();
parm2.setName("TimeStamp");
parm2.setValueAsDate(new Date());
parm2.setValueDataType(NameValuePair.DATA_TYPE_DATETIME);


IBM Unica Interact
 
8.5.0
For more information, see our support and community site: Customer Central