updated date functionality