Removed the old Date API
Fixed some bugs in the new Date API