Add getFormattedDate function to return the date in day and month format