Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WBRIDGE and version 7.4.1
Div
Classe2e-refDiv
Rp
Syntax
Code Block
languagenone
set aDateTime = aString.parseDateTimeExpression(aFormat)
Semantics

parseDateTimeExpression() initializes a DateTime object from a string using the given format expression. The format expression is a string with placeholders for date/time variables (see Date and Time Formatting).

Note
iconfalse

The operation expects that aString conforms to the given format aFormat. If the string does not match with the given format, the E2E xUML Runtime will raise an exception and not parse the string.
If conformity to the format is not guaranteed, you can use the match on aString to check before using parseDateTimeExpression.

SubstitutablesaString Can be any variable or object attribute having the type String.  
aFormat Can be any variable or object attribute having the type String. The formatting rules can be found in Date and Time Formatting.
Error CodesFind the related error codes on System Errors.
FUDSM/9 Parsing of "..." failed, it does not match format expression "...".
Examples
Code Block
languagenone
set aDateTime = aString.parseDateTimeExpression("%d.%m.%Y %H:%M:%S");

...