SIMPOL Documentation

string2datetime()

Description

Converts a string in one of the supported datetime formats and returns it as a datetime object. It supports any of these format strings: "yyyy-mm-dd hh:mm:ss.nnnnnn", "yyyy-mm-dd-hh.mm.ss.nnnnnn", or "yyyy-mm-ddThh:mm:ss.nnn".

Prototype

string2datetime ( string s, string format )

Parameters

ParameterDefault valueType nameDescription
sNonestring
formatyyyy-mm-dd hh:mm:ss.nnnnnnstring