contains util function for date