c# - Modelstate always complains of invalid datetime -



c# - Modelstate always complains of invalid datetime -

i have added info annotation in 1 of properties of model

[datatype(datatype.date), displayformat(dataformatstring = "{0:dd/mm/yyyy}", applyformatineditmode = true)] public datetime? lastlogindate { get; set; }

however, whenever save info edit mode, model state says date invalid if day greater 12.

e.g.,

01/12/2012 (valid) 31/12/2012 (invalid)

how right such 31/12/2012 recognized valid modelstate.

c# asp.net-mvc modelstate

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

Hibernate criteria by a list of natural ids -

ios - Lagging ScrollView with UIWebview inside -