how to enter the date inside matrix and how to validate it inside matrix?