added function to check current dekad of a date