SIMPOL Documentation

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 dt, string format )

Parameters

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