adding / updating date functions