Adds date functionality