dbAsDate function

Converts to timestamp.