To convert string of any format into $horolog, use TO_DATE function:
w $SYSTEM.SQL.TODATE("20160105125915","YYYYMMDD")
>63922To convert string of any format to timestamp use TO_TIMESTAMP function:
w $SYSTEM.SQL.TOTIMESTAMP("20160105125915","YYYYMMDDHHMISS")
>2016-01-05 12:59:15These functions are available in Caché ObjectScript and SQL.
- Log in to post comments