psDateTimeFormat - cWebApp

Determines the format in which unmasked date time values are shown and in which format they are edited

Type: Property (Web Property)

Access: Read/Write

Data Type: String

Parameters: None

Syntax
 { WebProperty=Client }
 Property String psDateTimeFormat

Web Property Read Access: WebGet psDateTimeFormat to StringVariable
Web Property Write Access: WebSet psDateTimeFormat to StringVariable/Value

Read Access: Get psDateTimeFormat to StringVariable
Write Access: Set psDateTimeFormat to StringVariable/Value


Description

This property determines the format in which unmasked date time values are shown and in which format they are edited.

Its default value is set during initialization, depending on the system locales of the host machine where the date format is extended with "hh:mm:ss".

If milliseconds need to be available, ".f" or ".fff" should be added to this string. The date separator ("/") will be replaced by the actual date separator configured under with the psDateSeparator property and the time separator (":") by psTimeSeparator.

Examples are "dd/mm/yyyy hh:mm:ss" for European date formats and "mm/dd/yyyy hh:mm:ss.fff" for US date formats with milliseconds.

Note that this property only changes how the JavaScript Engine handles datetime values. DateTime values are transmitted in a fixed format and are handled on the server in DataFlex in the local format of that server.


About Web Properties
Each web property maintains two values: The regular property value is set during object creation and should not be changed during the lifetime of that object. To access that value, use the standard property Get and Set syntax.
The web property value is the local value stored at each client. This is synchronized to the client's local value whenever a server call is being processed. To access the web property value, use the WebGet and WebSet syntax above instead of the standard Get and Set syntax.
See Also

psDecimalSeparator | psDateFormat | psDateSeparator | psThousandsSeparator