I am getting the correct date, but it is not accepted.