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
,
string s
)
format
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
s | None | string | |
format | yyyy-mm-dd hh:mm:ss.nnnnnn | string |