Start of Content Area

Object documentation Date Objects in Adobe LiveCycle Designer  Locate the document in its SAP Library structure

Definition

Under Library ® Form Builder, Adobe LiveCycle Designer provides you with the following date objects:

·        Localized Full Date

·        Localized Long Date

·        Localized Medium Date

·        Localized Short Date

Use

You use these date objects to format dates locally when you call the form. The dates are formatted according to the parameter values entered for language and country in the application program. These values are sent to the generated function module that contains the form description.

 

Example

You want to display the date objects on the form in US format or in German format.

data       fp_docparams type sfpdocparams.

[...]

 

* US format

  fp_docparams-langu = 'EN'.

  fp_docparams-country = 'US'.

 

* German format

*  fp_docparams-langu = 'D'.

*  fp_docparams-country = 'DE'.

 

* Call the generated function module

  call function fm_name

    exporting

      /1bcdwb/docparams       = fp_docparams

 

Date Display as Specified by Date Objects

Date Object

US Date

German Date

Standard Date/Time Field

May 17, 2004

17.05.2004

Localized Default Date

May 17, 2004

17.05.2004

Localized Full Date

Monday, May 17, 2004

Montag, 17. Mai 2004

Localized Long Date

May 17, 2004

17. Mai 2004

Localized Medium Date

May 17, 2004

17.05.2004

Localized Short Date

5/17/04

17.05.04

 

For more information, see Example: Calling Forms in the Application Program.

 

End of Content Area