TO_TIMESTAMP scalar function

The TO_TIMESTAMP function returns a timestamp that is based on the interpretation of the input string using the specified format.

Read syntax diagramSkip visual syntax diagramTO_TIMESTAMP(string-expression ,format-string12,precision-constant,locale-name,locale-name12,precision-constant )

The schema is SYSIBM.

The TO_TIMESTAMP scalar function is a synonym for the TIMESTAMP_FORMAT scalar function except that the default value for precision-constant is 12.