added some date utils that I needed.