clearDateHeader function