finished current date funciton