day functionlaity closure