datetimestr()
Description
Formats a datetime and returns it as a string. 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
datetimestr
(
datetime
,
string dt
)
format
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
dt | None | datetime | |
format | yyyy-mm-dd hh:mm:ss.nnnnnn | string |