Added some date functionality. not finished yet.