Updated getDate to optionally take an existing Date object