Fixed getDate Bug mentioned in #3