Fix all bugs in dates