Make function to extract a certain part of a date
Make function to extract a certain part of a date