Function for struct_time to date.
Create day result tuples in a function.