Added reset date function