changed date functionality.