Skip to main content
Skip table of contents

parseLocalDateTimeExpression() Operation

Syntax

set aDateTime = aString.parseLocalDateTimeExpression(aFormat);

Semantics

parseLocalDateTimeExpression()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 Patterns ). The time zone is always the local one. If the string does not match with the given format, an exception will be thrown.

Substitutables

aDateTime

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 Patterns .

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.