To separate the day from a date