Reputation:
As i have not created a field for the current date in a database table, and not also in model class also, but i want to display only the view of that field?
<div class="editor-label">
@Html.Label("Date")
</div>
<div class="editor-field">
//here is the problem what to do??
??
</div>
Upvotes: 0
Views: 943
Reputation: 422
if you just want to show a field you can add input tag give it a name and id, Or you can use the razor syntax to add a text field !! if you want to use that field for datepicker then use Jquery DatePicker This Link might help you Jquery DatePicker
Upvotes: 4