pp108 : DateFormat

DateFormat

This component enables the date to be formatted according to the locale and time zone.

The following table lists the methods that can be defined for the component:

Method

Description

setDisplayFormat

Sets the display format for the date

format

Formats the date according to the display format

getDate 

Returns the date object according to the time zone

setTimezone

Sets the time zone for the date

getTimezone

Returns the time zone set for the date

toTimezone

Converts the date object to the time zone passed