Added date functionality