Updated getDate to optionally take an existing Date object

I found myself in need of updating an existing Date object with the value selected and saw it was a fairly easy update to the existing code. I did not update the minified version.