In this tutorial, we will try to validate some data coming from a form input. While using this sample code will check the date is true and in correct format. We will compare the date within a culture date format. Code can do two jobs for us : date is valid and date is in correct format.