I am trying to test some validation in VB.NET.
If the unit ("id", "wrong week end date")) Where is the date of weekend date type. When I basically create an object, how can I insert a value in the weekend which will generate an empty string (i.e. "") when changes from date to string?
It may be better to use MinValue to indicate an invalid date If:
If Entity.WeekEndDate = As a rule, you should not change dates in stars and compare it later (New cValidationError ("id", "wrong week end date"))
Compare as the original datatype (in this case, datetime).
Comments
Post a Comment