Skip to main content
Skip table of contents

parseLocalDateTimeExpression() Operation

Syntax
NONE
set aDateTime = aString.parseLocalDateTimeExpression(aFormat);
SemanticsparseLocalDateTimeExpression()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). The time zone is always the local one. If the string does not match with the given format, an exception will be thrown.
SubstitutablesaDateTime Can be any variable or object attribute having the type DateTime.
aFormat Can be any variable or object attribute having the type String. The formatting rules can be found in Date and Time Formatting.
aString Can be any variable or object attribute having the type String
Examples
NONE
set aDateTime = aString.parseLocalDateTimeExpression("%D %H");
JavaScript errors detected

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

If this problem persists, please contact our support.