update day and month states