to check for the day of given date i hav problem with variable assigment