it is just given as a problem statement but i think its only general form of date format why dont you give the code for basic date type