Asp net validating datetime single online dating websites
When using Chrome I noticed that my datetime validation in MVC was failing. I had a model with the following Data Annotations on it: All of the above looks ok and works exactly as expected on Firefox and Internet explorer but Chrome was still failing on validation and would not let me submit the form.With Attribute class used inside the test , we are testing actual scenario that is happening inside our app . It seems that when Date Time object is passed to the Reg Exp Attribute , something weird is happening and validation fails. In my scenario those parameters were initialized with zeros My simple regex pattern wont match this string. Result - SUCCESS The Highlighted part is the problem. In my case , I used the string inside test when my app used Date Time object.Result - SUCCESS Yey green light, They passed so it’s working ! To provide client side validation support for your custom validator you need to implement IClient Validatable interface.This interface has one method Get Client Validation Rules which you need to override in your class.