Format date/time in :db format