create a day functionality