I have a simple view with two date fields with ValidationMessageFor controls added for the unobtrusive JavaScript validation.
My issue is I keep getting told my date is invalid, when it is in correct format (dd/MM/yyyy)
I have added <globalization culture="en-GB" uiCulture="en-GB"/>
to my web.config, and also included [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
on each DateTime property, yet it still won't accept UK format dates.
Is there anything obvious I am missing here?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…