Date and time formatting in BW (OP)Hinweis BW is only supported in LN 10.3 and earlier versions. In BW, formatting of date and time fields is based on the Windows date and time settings and the LN format codes that are linked to the fields. Format codes refer to formats that are defined in the Date Formats (ttadv4580m000) and Time Formats (ttadv4586m000) sessions. A format determines, for example, whether a date field shows the year with or without the century, or whether a time field shows only hours and minutes and no seconds. Date formatting This section describes how the Windows settings and the LN date formats are combined and used to format date fields in BW. The properties of the field format are retrieved and verified. If the format is defined to use week numbers and no day number is defined, this format is incompatible with the Windows Date control. This table shows how the format’s properties are changed in that scenario:
Hinweis If the ERP format specifies that the Day Name or the Month Name must be displayed, the Windows long format is used; otherwise, the Windows short format is used. This Windows format is then combined with the ERP format. The Windows format determines the order of the individual parts. The ERP format determines how the individual parts are formatted. This table shows the rules that are applied:
Beispiel 1 This table shows the Windows date formats for a Dutch user:
A date field uses ERP format 001. This table shows the properties for this format:
Because no Day Name or Month Name is defined, the date is formatted based on the Windows Short Date format. The date value is formatted as dd-MM-yy, for example, 09-01-12. Beispiel 2 This table shows the Windows date formats for a user in the United States:
A date field uses ERP format 002. This table shows the properties for this format:
Because no Day Name or Month Name is defined, the date is formatted based on the Windows Short Date format. The date value is formatted as: MM/dd/yyyy, for example, 01/09/2012. Beispiel 3 This table shows the Windows date formats for a user in the United States (same as in example 2):
A date field uses ERP format 003. This table shows the properties for this format:
Because the abbreviated Month Name must be used, the date is formatted based on the Windows Long Date format. The date value is formatted as: dddd, MMM d yyyy, for example, Monday, Jan 9 2012. Beispiel 4 This table shows the Windows date formats for a German user:
A date field uses ERP format 008. This table shows the properties for this format:
Because the complete Day Name and Month Name must be used, the date is formatted based on the Windows Long Date format. The date value is formatted as dddd, dd. MMMM yyyy, for example, Montag, 09. Januar 2012. Time formatting This section describes how the Windows settings and the LN time formats are used to format time fields in BW. The data of the field format is retrieved and combined with the Windows time format. The Windows format determines the order of the individual parts; the ERP format determines how the individual parts are formatted. Hinweis In all scenarios, the Windows long time format is used. This table shows the rules that are applied:
Beispiel 1 A user has this Windows long time format: H:mm:ss A time field uses ERP format 003. This table shows the properties for this format:
The time value is formatted as HH, for example, 16, which is four o’clock in the afternoon. Beispiel 2 A user has this Windows long time format: H:mm:ss A time field uses ERP format 099. This table shows the properties for this format:
The time value is formatted as: HH:mm, for example, 16:24. Beispiel 3 A user has this Windows long time format: h:mm:ss tt A Time field uses ERP format 001. This table shows the properties for this format:
The time value is formatted as hh:mm:ss tt, for example, 04:24:37 PM.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||