Skip to main content
Skip table of contents

convertToDateTime() Operation

Syntax

set aDateTimeObject = aString.convertToDateTime()
set aDateTimeObject = convertToDateTime(LITERAL)

Semantics

convertToDateTime() converts the internal lexical representation of DateTime ("CCYY-MM-DDThh:mm:ss[.sss][Z|[+|-]hh:mm]") to a DateTime type.
If the conversion is not possible, an error message is raised (for instance: NULL strings).

Substitutables

aString

Can be any variable or object attribute having the type String. The format must correspond to the lexical representation of DateTime.  

LITERAL

String literal. The format must correspond to the lexical representation of DateTime.

Examples

NONE
set aDateTimeObject = aString.convertToDateTime(); 

ActionScript_Calculations_Example

Click here to download a simple example model that shows how to use Action Script to perform simple Integer, Float and DateTime calculations with Scheer PAS Designer.

JavaScript errors detected

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

If this problem persists, please contact our support.