added function to get past dates and UTC date support