get / convert a date to dos-timestamp