You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Syntax
set aString = aDateTime.printLocalDateTimeExpression(aFormat);
SemanticsprintLocalDateTimeExpression() 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). The time zone is always the local one. In this respect, this operation is just a convenience method for the printDateTimeExpression() Operation.
SubstitutablesaDateTime 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.
aString Semantically, this is the lexical representation of a DateTime object following the format specification given in aFormat in the local time zone.
Examples
set aString = aDateTime.printLocalDateTimeExpression("%d.%m.%Y %H:%M:%S");
  • No labels