ASP.Net MVC C# Chrome not showing date in edit mode -
i using google chrome v28 browser - , have problem dataannotations on model, force chrome use it's own inbuild calendar when rendering datatime type in view.
my model is:
public class obscore { public int obscoreid { get; set; } ... ... [displayformat(dataformatstring = "{0:dd mmmm yyyy}", applyformatineditmode = true)] [display(name = "date")] [datatype(datatype.date)] public datetime date { get; set; } ... ... } there data in model: 
...but when displaying in edit mode, chrome shows: 
is known bug in chrome, , there can in code, force date form?
thanks, mark
try removing [datatype(datatype.date)] because believe creates <input type="date" />. if you'll end <input type="text" /> can attach jquery date-picker.
try w3schools: input type date in different browsers see difference.
edit:
in past used following in view make work jquery date-picker (if you're interested in using it).
@html.textboxfor(model => model.dateofbirth, @"{0:yyyy\/mm\/dd}", new { @class = "datepicker" })
Comments
Post a Comment