Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/drupal/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
asp.net mvc3 Datetime到shortdate_Asp.net_Asp.net Mvc 3_Datetime Format - Fatal编程技术网

asp.net mvc3 Datetime到shortdate

asp.net mvc3 Datetime到shortdate,asp.net,asp.net-mvc-3,datetime-format,Asp.net,Asp.net Mvc 3,Datetime Format,我不熟悉asp.net和mvc3。我正在使用sql server和实体框架,希望在我的详细信息视图中显示日期 sql中的数据类型是DateTime 现在我得到的是:21.03.2013 00:00:00 我想要的是:21.03.2013 现在我正在使用: @Html.DisplayFor(Model => Model.PlanBegPlan.Date) 请帮忙 我的控制器 public ViewResult DetailsTestRelease(int id) {

我不熟悉asp.net和mvc3。我正在使用sql server和实体框架,希望在我的详细信息视图中显示日期

sql中的数据类型是
DateTime

现在我得到的是:
21.03.2013 00:00:00
我想要的是:
21.03.2013

现在我正在使用:

@Html.DisplayFor(Model => Model.PlanBegPlan.Date)
请帮忙

我的控制器

  public ViewResult DetailsTestRelease(int id)
    {
        ViewData["EditTestReleaseId"] = id;

        TRel testrelease = db.TRel.Single(t => t.Id == id);
        Basedata bv = db.BasedataSet.Single(b => b.Id == id);
        ViewData["pid"] = testrelease.ProjectId;
        //ViewData["bid"] = testrelease.Base.Id;

        var tuple = new Tuple<KPI_Container.TRel, KPI_Container.Basedata>(testrelease, bv);

        return View(tuple);
    }
public-ViewResult-DetailsTestRelease(int-id)
{
ViewData[“EditTestReleaseId”]=id;
TRel testrelease=db.TRel.Single(t=>t.Id==Id);
Basedata bv=db.BasedataSet.Single(b=>b.Id==Id);
ViewData[“pid”]=testrelease.ProjectId;
//ViewData[“bid”]=testrelease.Base.Id;
var tuple=新的tuple(testrelease,bv);
返回视图(元组);
}

我的看法是:

    @model Tuple<KPI_Container.TRel, KPI_Container.Basedata>


    @{
        ViewBag.Title = "Details";
    }

    <h2>Soll-Werte</h2>
    <br />
     <div>
        @Html.ActionLink("Soll-Werte Testrelease Bearbeiten", "EditTestRelease", new { id = ViewData["EditTestReleaseId"] }, new { Class = "action add", title = "Hier können die Testreleasedaten gepflegt werden." }) 

        @Html.ActionLink("Soll-Planung der Basiswerte", "EditBaseValues", new { id = ViewData["EditTestReleaseId"] }, new { Class = "action add", title = "Zum Ansehen und Bearbeiten der Basiswerte." }) |
        @Html.ActionLink("KPI-Werte anzeigen", "ShowKPIs", new { id = ViewData["EditTestReleaseId"] }, new { Class = "action add", title = "Zum Ansehen der KPI-Werte." })
     </div>



    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css">
    <script src="http://code.jquery.com/jquery-1.9.0.js" type="text/javascript"></script>
    <script src="http://code.jquery.com/ui/1.10.0/jquery-ui.js" type="text/javascript"></script>


    <script>
        $(function () {
            $("#tabs").tabs();
        });
    </script>


    @using (Html.BeginForm())
    {
    @Html.ValidationSummary(true)

    <div id="tabs">
        <ul>
            <li><a href="#tabs-1"><span>Planung Testrelease</span></a></li>
            <li><a href="#tabs-2"><span>Management & Koordination</span></a></li>
            <li><a href="#tabs-3"><span>Zusatzservices / Aktivitäten</span></a></li>
            <li><a href="#tabs-4"><span>PPU Services</span></a></li>
            <li><a href="#tabs-5"><span>Einflussparameter / Steuergrößen</span></a></li>
        </ul>
        <div id="tabs-1">
        <table id="tabletry">
        <tr>
        <th>Testrelease</th>
        <th></th>
        </tr>
        <tr>
        <td title="Name des Testrelease">Name</td>
        <td style="background-color: White">@Html.DisplayFor(Model => Model.Item1.Name)</td>
        </tr>

        <tr>
        <td title="Name des Projektes">@Html.LabelFor(model => model.Item1.ProjectId, "Projekt")</td>
        <td style="background-color: White">@Html.DisplayFor(Model => Model.Item1.Project.Name)</td>
        </tr>


        </table>
        <br />

    <table id="tabletry">
    <tr>
    <th>Soll-Werte</th>
    <th></th>
    <th></th>
    <th></th>
    <th></th>
    </tr>
    <tr>
    <td>Plan( Control)</td>
    <td title="Planned Begin Planning - Geplanter Beginn der Testplanung aus der Baseline">PlanBegPlan</td>
    <td style="background-color: White">@Html.DisplayFor(Model => Model.Item1.PlanBegPlan)</td>
    <td title="Planned End Planning - Geplantes Ende der Testplanung aus der Baseline">PlanEndPLan</td>
    <td style="background-color: White">@Html.DisplayFor(Model => Model.Item1.PlanEndPlan.Date)</td>
    </tr>
    <tr>
    <td>Prep</td>
    <td title="Planned Begin Preparation- Geplanter Beginn der Testvorbereitung aus der Baseline">PlanBegPrep</td>
    <td style="background-color: White">@Html.DisplayFor(Model => Model.Item1.PlanBegPrep.Date)</td>
    <td title="Planned End Preparation - Geplantes Ende der Testvorbereitung aus der Baseline">PlanEndPrep</td>
    <td style="background-color: White">@Html.DisplayFor(Model => Model.Item1.PlanEndPrep.Date)</td>
    </tr>
    <tr>
    <td>Exec</td>
    <td title="Planned Begin Execution- Geplanter Beginn der Testdurchführung aus der Baseline">PlanBegExec</td>
    <td style="background-color: White">@Html.DisplayFor(Model => Model.Item1.PlanBegExe.Date)</td>
    <td title="Planned End Execution- Geplantes Ende der Testdurchführung aus der Baseline">PlanEndExec</td>
    <td style="background-color: White">@Html.DisplayFor(Model => Model.Item1.PlanEndExe.Date)</td>
    </tr>
    <tr>
    <td>Total</td>
    <td title="Planned Begin Total- Geplanter Beginn des Gesamtprojektes aus der Baseline">PlanBegTot</td>
    <td style="background-color: White">@Html.DisplayFor(Model => Model.Item1.PlanBegTot.Value.Date)</td>
    <td title="Planned End Total- Geplantes Ende des Gesamtprojektes aus der Baseline">PlanEndTot</td>
    <td style="background-color: White">@Html.DisplayFor(Model => Model.Item1.PlanEndTot.Value.Date)</td>
    </tr>

    </table>
   </div>
   <div id="tabs-2">
        <table id="tabletry">
                    <tr>
                    <th>Soll-Werte</th>
                    <th></th>
                    </tr>
                    <tr>
                        <td title="xx">Projektmanagement</td>
                        <td style="background-color: white">@Html.DisplayFor(Model => Model.Item2.PM_plan)</td>
                    </tr>
                    <tr>
                        <td title="xx">Qualitätsmanagement</td>
                        <td style="background-color: white">@Html.DisplayFor(Model => Model.Item2.QM_plan)</td>
                    </tr>
                    <tr>
                        <td title="xx">Projektmanagement Office</td>
                        <td style="background-color: white">@Html.DisplayFor(Model => Model.Item2.PMO_plan)</td>
                    </tr>
                    <tr>
                        <td title="xx">Teamkoordination</td>
                        <td style="background-color: white">@Html.DisplayFor(Model => Model.Item2.Tcoord_plan)</td>
                    </tr>
                </table>
                </div>

                <div id="tabs-3">
                <table id="tabletry">
                    <tr>
                        <th>Soll-Werte</th>
                        <th></th>
                    </tr>
                    <tr>
                        <td title="xx">Defektmanagement</td>
                        <td style="background-color: white">@Html.DisplayFor(Model => Model.Item2.Defmgmt_plan)</td>
                    </tr>
                    <tr>
                        <td title="xx">Umgebungsmanagement</td>
                        <td style="background-color: white">@Html.DisplayFor(Model => Model.Item2.Envmgmt_plan)</td>
                    </tr>
                    <tr>
                        <td title="xx">Testdatenmanagement</td>
                        <td style="background-color: white">@Html.DisplayFor(Model => Model.Item2.Testdmgmt_plan)</td>
                    </tr>
                    <tr>
                        <td title="xx">Testvorbereitung</td>
                        <td style="background-color: white">@Html.DisplayFor(Model => Model.Item2.Testprep_plan)</td>
                    </tr>
                    <tr>
                        <td title="xx">Knowledgetransfer/Transition</td>
                        <td style="background-color: white">@Html.DisplayFor(Model => Model.Item2.KTTrans_plan)</td>
                    </tr>
                    <tr>
                        <td title="xx">Consulting</td>
                        <td style="background-color: white">@Html.DisplayFor(Model => Model.Item2.Consulting_plan)</td>
                    </tr>
                    <tr>
                        <td title="xx">Tools-Setup</td>
                        <td style="background-color: white">@Html.DisplayFor(Model => Model.Item2.Toolset_plan)</td>
                    </tr>
                </table>
                </div>

                <div id="tabs-4">
                <h2>Funktionaler Test</h2>
                 <table id="tabletry">
                <tr>
                        <th title="xx">Neue<br />Funktionalität</th>
                        <th title="xx">Anzahl geplant<br />hoch</th>
                        <th title="xx">Anzahl geplant<br />mittel</th>
                        <th title="xx">Anzahl geplant<br />gering</th>
                </tr>
                <tr>
                        <td>Specification</td>
                        <td style="border-right-style: dotted; background-color: white">@Html.DisplayFor(Model => Model.Item2.FUN_Tspec_nf_l_plan)</td>
                        <td style="border-right-style: dotted; background-color: white">@Html.DisplayFor(Model => Model.Item2.FUN_Tspec_nf_m_plan)</td>
                        <td style="background-color: white">@Html.DisplayFor(Model => Model.Item2.FUN_Tspec_nf_s_plan)</td>
                </tr>
                <tr>
                        <td>Execution</td>
                        <td style="border-right-style: dotted; background-color: white">@Html.DisplayFor(Model => Model.Item2.FUN_TEXe_nf_l_plan)</td>
                        <td style="border-right-style: dotted; background-color: white">@Html.DisplayFor(Model => Model.Item2.FUN_TExe_nf_m_plan)</td>
                        <td style="background-color: white">@Html.DisplayFor(Model => Model.Item2.FUN_TExe_nf_s_plan)</td>
                </tr>
                <tr>
                        <th>Regression</th>
                        <td style="border-right-style: dotted;background-color:silver"></td>
                        <td style="border-right-style: dotted;background-color:silver"></td>
                        <td style="background-color:silver"></td>
                </tr>
                <tr>
                        <td>Specification</td>
                        <td style="border-right-style: dotted; background-color: white" >@Html.DisplayFor(Model => Model.Item2.FUN_Tspec_reg_l_plan)</td>
                        <td style="border-right-style: dotted; background-color: white">@Html.DisplayFor(Model => Model.Item2.FUN_Tspec_reg_m_plan)</td>
                        <td style="background-color: white">@Html.DisplayFor(Model => Model.Item2.FUN_Tspec_reg_s_plan)</td>
                </tr>
                <tr>
                        <td>Execution</td>
                        <td style="border-right-style: dotted; background-color: white">@Html.DisplayFor(Model => Model.Item2.FUN_TExe_reg_l_plan)</td>
                        <td style="border-right-style: dotted; background-color: white">@Html.DisplayFor(Model => Model.Item2.FUN_TExe_reg_m_plan)</td>
                        <td style=" background-color: white">@Html.DisplayFor(Model => Model.Item2.FUN_TExe_reg_s_plan)</td>
                </tr>
                </table>

                    <br />
                    <br />
                <h2> Testautomatisierung</h2>
                <table id="tabletry">
                <tr>
                        <th title="xx">Neue<br />Funktionalität</th>
                        <th title="xx">Anzahl geplant<br />hoch</th>
                        <th title="xx">Anzahl geplant<br />mittel</th>
                        <th title="xx">Anzahl geplant<br />gering</th>
                </tr>
                <tr>
                        <td>Specification</td>
                        <td style="border-right-style: dotted; background-color: white">@Html.DisplayFor(Model => Model.Item2.TAU_Tspec_nf_l_plan)</td>
                        <td style="border-right-style: dotted; background-color: white">@Html.DisplayFor(Model => Model.Item2.TAU_Tspec_nf_m_plan)</td>
                        <td style="background-color: white">@Html.DisplayFor(Model => Model.Item2.TAU_Tspec_nf_s_plan)</td>
                </tr>
                <tr>
                        <td>Execution</td>
                        <td style="border-right-style: dotted; background-color: white">@Html.DisplayFor(Model => Model.Item2.TAU_TEXe_nf_l_plan)</td>
                        <td style="border-right-style: dotted; background-color: white">@Html.DisplayFor(Model => Model.Item2.TAU_TExe_nf_m_plan)</td>
                        <td style="background-color: white">@Html.DisplayFor(Model => Model.Item2.TAU_TExe_nf_s_plan)</td>
                </tr>
                <tr>
                        <th>Regression</th>
                        <td style="border-right-style: dotted;background-color:silver"></td>
                        <td style="border-right-style: dotted;background-color:silver"></td>
                        <td style="background-color:silver"></td>
                </tr>
                <tr>
                        <td>Specification</td>
                        <td style="border-right-style: dotted; background-color: white" >@Html.DisplayFor(Model => Model.Item2.TAU_Tspec_reg_l_plan)</td>
                        <td style="border-right-style: dotted; background-color: white">@Html.DisplayFor(Model => Model.Item2.TAU_Tspec_reg_m_plan)</td>
                        <td style="background-color: white">@Html.DisplayFor(Model => Model.Item2.TAU_Tspec_reg_s_plan)</td>
                </tr>
                <tr>
                        <td>Execution</td>
                        <td style="border-right-style: dotted; background-color: white">@Html.DisplayFor(Model => Model.Item2.TAU_TExe_reg_l_plan)</td>
                        <td style="border-right-style: dotted; background-color: white">@Html.DisplayFor(Model => Model.Item2.TAU_TExe_reg_m_plan)</td>
                        <td style=" background-color: white">@Html.DisplayFor(Model => Model.Item2.TAU_TExe_reg_s_plan)</td>
                </tr>
                </table>
                    <br />
                    <br />
                <h2>Last&Performance Test</h2>
                <table id="tabletry">
                <tr>
                        <th title="xx">Neue<br />Funktionalität</th>
                        <th title="xx">Anzahl geplant<br />hoch</th>
                        <th title="xx">Anzahl geplant<br />mittel</th>
                        <th title="xx">Anzahl geplant<br />gering</th>
                </tr>
                <tr>
                        <td>Specification</td>
                        <td style="border-right-style: dotted; background-color: white">@Html.DisplayFor(Model => Model.Item2.LPT_Tspec_nf_l_plan)</td>
                        <td style="border-right-style: dotted; background-color: white">@Html.DisplayFor(Model => Model.Item2.LPT_Tspec_nf_m_plan)</td>
                        <td style="background-color: white">@Html.DisplayFor(Model => Model.Item2.LPT_Tspec_nf_s_plan)</td>
                </tr>
                <tr>
                        <td>Execution</td>
                        <td style="border-right-style: dotted; background-color: white">@Html.DisplayFor(Model => Model.Item2.LPT_TEXe_nf_l_plan)</td>
                        <td style="border-right-style: dotted; background-color: white">@Html.DisplayFor(Model => Model.Item2.LPT_TExe_nf_m_plan)</td>
                        <td style="background-color: white">@Html.DisplayFor(Model => Model.Item2.LPT_TExe_nf_s_plan)</td>
                </tr>
                <tr>
                        <th>Regression</th>
                        <td style="border-right-style: dotted;background-color:silver"></td>
                        <td style="border-right-style: dotted;background-color:silver"></td>
                        <td style="background-color:silver"></td>
                </tr>
                <tr>
                        <td>Specification</td>
                        <td style="border-right-style: dotted; background-color: white" >@Html.DisplayFor(Model => Model.Item2.LPT_Tspec_reg_l_plan)</td>
                        <td style="border-right-style: dotted; background-color: white">@Html.DisplayFor(Model => Model.Item2.LPT_Tspec_reg_m_plan)</td>
                        <td style="background-color: white">@Html.DisplayFor(Model => Model.Item2.FUN_Tspec_reg_s_plan)</td>
                </tr>
                <tr>
                        <td>Execution</td>
                        <td style="border-right-style: dotted; background-color: white">@Html.DisplayFor(Model => Model.Item2.LPT_TExe_reg_l_plan)</td>
                        <td style="border-right-style: dotted; background-color: white">@Html.DisplayFor(Model => Model.Item2.LPT_TExe_reg_m_plan)</td>
                        <td style=" background-color: white">@Html.DisplayFor(Model => Model.Item2.LPT_TExe_reg_s_plan)</td>
                </tr>
                </table>

                    <br />
                    <br />
                    <h2>Security Test</h2>
                <table id="tabletry">
                <tr>
                        <th title="xx">Neue<br />Funktionalität</th>
                        <th title="xx">Anzahl geplant<br />hoch</th>
                        <th title="xx">Anzahl geplant<br />mittel</th>
                        <th title="xx">Anzahl geplant<br />gering</th>
                     @*   <th title="xx">Aufwand geplant</th>*@
                </tr>
                <tr>
                        <td>Specification</td>
                        <td style="border-right-style: dotted; background-color: white">@Html.DisplayFor(Model => Model.Item2.SEC_Tspec_nf_l_plan)</td>
                        <td style="border-right-style: dotted; background-color: white">@Html.DisplayFor(Model => Model.Item2.SEC_Tspec_nf_m_plan)</td>
                        <td style="border-right-style: groove;background-color: white">@Html.DisplayFor(Model => Model.Item2.SEC_Tspec_nf_s_plan)</td>
                        @* <td style="background-color: white">@Html.DisplayFor(Model => Model.Item2.SEC_Tspec_Eff_plan)</td>*@
                </tr>
                <tr>
                        <td>Execution</td>
                        <td style="border-right-style: dotted; background-color: white">@Html.DisplayFor(Model => Model.Item2.SEC_TEXe_nf_l_plan)</td>
                        <td style="border-right-style: dotted; background-color: white">@Html.DisplayFor(Model => Model.Item2.SEC_TExe_nf_m_plan)</td>
                        <td style="border-right-style: groove;background-color: white">@Html.DisplayFor(Model => Model.Item2.SEC_TExe_nf_s_plan)</td>
                    @*    <td style="background-color: white">@Html.DisplayFor(Model => Model.Item2.SEC_TExe_Eff_plan)</td>*@
                </tr>
                <tr>
                        <th>Regression</th>
                        <td style="border-right-style: dotted;background-color:silver"></td>
                        <td style="border-right-style: dotted;background-color:silver"></td>
                        <td style="border-right-style: groove;background-color:silver"></td>
                    @*    <td style="border-right-style: groove;background-color:silver"></td>*@
                </tr>
                <tr>
                        <td>Specification</td>
                        <td style="border-right-style: dotted; background-color: white" >@Html.DisplayFor(Model => Model.Item2.SEC_Tspec_reg_l_plan)</td>
                        <td style="border-right-style: dotted; background-color: white">@Html.DisplayFor(Model => Model.Item2.SEC_Tspec_reg_m_plan)</td>
                        <td style="border-right-style: groove;background-color: white">@Html.DisplayFor(Model => Model.Item2.SEC_Tspec_reg_s_plan)</td>
                   @*     <td style="border-right-style: groove;background-color: white">@Html.DisplayFor(Model => Model.Item2.SEC_Tspec_Eff_plan)</td>*@
                </tr>
                <tr>
                        <td>Execution</td>
                        <td style="border-right-style: dotted; background-color: white">@Html.DisplayFor(Model => Model.Item2.SEC_TExe_reg_l_plan)</td>
                        <td style="border-right-style: dotted; background-color: white">@Html.DisplayFor(Model => Model.Item2.SEC_TExe_reg_m_plan)</td>
                        <td style=" background-color: white; border-right-style: groove">@Html.DisplayFor(Model => Model.Item2.SEC_TExe_reg_s_plan)</td>
                </tr>
                </table>
                </div>


    </div>


  }  

<div>
     @Html.ActionLink("Zurück", "Details", new { id = ViewData["pid"] })
</div>
@模型元组
@{
ViewBag.Title=“详细信息”;
}
索尔·韦特

@ActionLink(“Soll Werte Testrelease Bearbeiten”,“EditTestRelease”,new{id=ViewData[“EditTestReleaseId”]},new{Class=“action add”,title=“Hier können die Testreleasedaten gepflegt werden.”) @ActionLink(“Soll Planung der Basiswere”,“EditBaseValues”,新{id=ViewData[“EditTestReleaseId”]},新{Class=“action add”,title=“Zum Anshen und Bearbeiten der Basiswere.”)| @ActionLink(“KPI Werte anzegen”,“showkpi”,new{id=ViewData[“EditTestReleaseId”]},new{Class=“action add”,title=“Zum Ansehen der KPI Werte.”) $(函数(){ $(“#制表符”).tabs(); }); @使用(Html.BeginForm()) { @Html.ValidationSummary(true)
测试发布 名称 @DisplayFor(Model=>Model.Item1.Name) @LabelFor(model=>model.Item1.ProjectId,“Projekt”) @DisplayFor(Model=>Model.Item1.Project.Name)
索尔·韦特 计划(控制) 计划 @DisplayFor(Model=>Model.Item1.PlanBegPlan) 平面图 @DisplayFor(Model=>Model.Item1.PlanEndPlan.Date) 把…准备好 普兰贝格普酒店 @DisplayFor(Model=>Model.Item1.PlanBegPrep.Date) PlanndPrep @DisplayFor(Model=>Model.Item1.plannendprep.Date) 执行官 PlanBegExec @DisplayFor(Model=>Model.Item1.PlanBegExe.Date) PlanEndExec @DisplayFor(Model=>Model.Item1.PlanEndExe.Date) 全部的 普朗贝格托特 @DisplayFor(Model=>Model.Item1.PlanBegTot.Value.Date) 普兰恩多特 @DisplayFor(Model=>Model.Item1.PlanEndTot.Value.Date) 索尔·韦特 项目管理 @DisplayFor(Model=>Model.Item2.PM\u计划) 质量管理 @DisplayFor(Model=>Model.Item2.QM\u计划) 项目管理办公室 @DisplayFor(Model=>Model.Item2.PMO\u计划) 团队协调 @DisplayFor(Model=>Model.Item2.Tcoord\u计划) 索尔·韦特 应急管理 @DisplayFor(Model=>Model.Item2.Defmgmt\u计划) 乌姆盖邦管理 @DisplayFor(Model=>Model.Item2.Envmgmt\u计划) 测试日期管理 @DisplayFor(Model=>Model.Item2.Testdmgmt\u计划) 试验室 @DisplayFor(Model=>Model.Item2.Testprep\u计划) 知识转移/转移 @DisplayFor(Model=>Model.Item2.KTTrans\u计划) 咨询 @DisplayFor(Model=>Model.Item2.Consulting\u计划) 工具设置 @DisplayFor(Model=>Model.Item2.Toolset\u计划) 功能试验 新功能 Anzahl geplant
hoch 安扎尔geplant
米特尔 Anzahl geplant
gering 规范 @DisplayFor(Model=>Model.Item2.FUN\u Tspec\u nf\u l\u计划) @DisplayFor(Model=>Model.Item2.FUN\u Tspec\u nf\u m\u plan) @DisplayFor(Model=>Model.Item2.FUN\u Tspec\u nf\u s\u计划) 执行 @DisplayFor(Model=>Model.Item2.FUN\u TEXe\u nf\u l\u计划) @DisplayFor(Model=>Model.Item2.FUN\u TExe\u nf\u m\u plan) @DisplayFor(Model=>Model.Item2.FUN\u TExe\u nf\u s\u计划) 回归
Model.PlanBegPlan.Date.ToShortDateString()
Model.PlanBegPlan.Date.ToString("dd.MM.yyyy")
@Html.Display(Model.PlanBegPlan.Date.ToString("dd.MM.yyyy"))
[DisplayFormat(DataFormatString = "{0:dd.MM.yyyy}", ApplyFormatInEditMode = true)]
public DateTime Date { get; set; }
@Html.DisplayFor(m => m.PlanBegPlan.Date)
@Html.DisplayFor(Model => Model.PlanBegPlan.Date.ToShortDateString())
@Html.DisplayFor(Model => Model.PlanBegPlan.Date.ToString("MM/dd/yyyy"))