Adding function to create a dated directory