Added some date functions