The functions encode-db-standard-date
and encode-db-standard-timestamp
interpret their argument as a DATE or TIMESTAMP and return the corresponding universal time.
date-string must be a string of length at least 10, where the first 10 characters specify a DATE, that is have the format YYYY-MM-DD.
timestamp-string must be a string of length at least 19, where the first 19 characters specify a TIMESTAMP, that is have the format YYYY-MM-DD HH:MM:SS.
encode-db-standard-date
and encode-db-standard-timestamp
do not actually check the separators between the numeric values, so the hyphens, space and colons can each be replaced by any character. Both functions return nil
if the argument is not correct.
decode-to-db-standard-date
decode-to-db-standard-timestamp
connect
Working with date fields
LispWorks User Guide and Reference Manual - 20 Sep 2017