@model DateTime?
@{
    var value = "";
    if (Model.HasValue)
    {
        value = String.Format("{0:d}", Model.Value.ToString("dd.MM.yyyy"));
    }
}
<div class="col-md-3">
@Html.TextBox("", value, new { @class = "datefield form-control", type = "text" })
</div>