Sep 20, 2011 at 12:49 PM
Edited Sep 20, 2011 at 1:11 PM
I'm also getting this error, when displaying the EditView and this happens before trying to save it.
I don't wan't to have a default date that gets displayed when editing the part
My solution is this:
1.) I set the default date of 1/1/1900 in my Record's constructor
2.) I have the following helper function for the edit view
@helper EmptyDefaultDate(DateTime d)
if (d.CompareTo(new DateTime(1900,1,1)) == 0)
Or is there a better way?
There is still one problem though.
The date field is not marked with [Required] and despite setting the default value in the Record's constructor
I get the "The DateBirth field is required." when I try to save my part with an empty value of the DateBirth field.