Skip to main content
Skip table of contents

printLocalDateTimeExpression() Operation

Syntax

set aString = aDateTime.printLocalDateTimeExpression(aFormat);

Semantics

printLocalDateTimeExpression() converts a DateTime to a String using the given aFormat expression. The format expression is either a predefined constant or a string with placeholders for date/time variables (see Date and Time Formatting Patterns). The time zone is always the local one. In this respect, this operation is just a convenience method for the printDateTimeExpression() Operation.

Please note that applying this operation on old date and times (before 1970) may lead to strange results. Before 1970, the time zones have been constantly shifting (see tz database in Wikipedia). Also, it makes no sense to calculate with the time part only for older dates.

Substitutables

aDateTime

Can be any variable or object attribute having the type DateTime.

aFormat

This String defines the format of the printed date time expression. The formatting rules can be found in Date and Time Formatting Patterns.

aString

Semantically, this is the lexical representation of a DateTime object following the format specification given in aFormat in the local time zone.

Examples

NONE
set aString = aDateTime.printLocalDateTimeExpression("%d.%m.%Y %H:%M:%S");

Related Documentation:

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.