Completed slots_to_date() function