updated date to use date