GetDateOrTimePart

Description

This JSP function returns a string representing the date or time portion of a timestamp value.

Syntax

String getDateOrTimePart(String type, String value);

Input parameters

type - Required. Specifies whether to display the date or time. Pass YFCDATE to return the date portion of the timestamp. Pass YFCTIME to return the time portion of the timestamp.

value - Required. String containing a timestamp value in the current login user's locale's timestamp format.

Output parameters

A string representing the date or time portion of the timestamp attribute.

Example

This example uses the getDateOrTimePart() function to return the date portion of the attribute referred to in the xml:/OrderRelease/@HasDerivedParent binding.

getDateOrTimePart("YFCDATE", 
resolveValue("xml:DeliveryPlan:/DeliveryPlan/@DeliveryPlanDate));