首页 > 解决方案 > 抑制来自 tfs 的时间戳

问题描述

我不希望时间戳出现在 TFS Web 门户上的工作项模板上的日期时间字段中。你能建议我怎么做吗?附上带有 DateTime 字段的工作项模板的图像以供参考

在此处输入图像描述

标签: tfstfs-workitem

解决方案


来自https://docs.microsoft.com/en-us/azure/devops/reference/xml/specify-work-item-form-controls?view=tfs-2015#add-date-or-calendar-fields

您需要将格式更改为“短”,例如: xml <Control Type="DateTimeControl" FieldName="MyCompany.EnvironmentCR.PreferredStart"
Label="Preferred Start Date:" LabelPosition="Left" Format="Short" />


推荐阅读