My SQL database has a column Date
which allows strings only in such format: __/____
, basically month/year for example: 01/2019
.
Is it possible for my:
@Html.EditorFor(model => model.Date, new { htmlAttributes = new { @class = "form-control" } })
to have some helper so that user can type only using the correct format? For example the editor which has strong typed something like this: __/___
and can only input numbers to fill underscores.