getValueAsDate

The getValueAsDate method returns the value of a NameValuePair object.

getValueAsDate()

You should use getValueDataType before using getValueAsDate to confirm you are referencing the correct data type.

Return value

The getValueAsDate method returns a date.

Example

The following example is an excerpt from a method which processes a NameValuePair and prints the value if it is a date.

if(nvp.getValueDataType().equals(NameValuePair.DATA_TYPE_DATE))
{
    System.out.println("Value:"+nvp.getValueAsDate());
}