Updated getDate to optionally take an existing Date object
documentation update
Code formatting changes