changing getDate to getDateTimestamp