Revert "Fixed getDate function."
Breaks tests

This reverts commit 60eeca971fbeeab55c5ab4ac73940c66649e5bb6.