Fixing some bugs in myDate helper