How can i get the DateCreated field to auto populate with DateTime.Now
<div class="editor-label">
@Html.LabelFor(model => model.DateCreated)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.DateCreated)
@Html.ValidationMessageFor(model => model.DateCreated)
</div>
This is normally something you’d do outside of this scope of the view, ie, in the controller.
Or, in the constructor of the model itself.