TFS 2013中为工作项DateTimeControl自定义日期格式。 [英] Custom date formatting in TFS 2013 for the Work Item DateTimeControl.

查看:64
本文介绍了TFS 2013中为工作项DateTimeControl自定义日期格式。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个自定义的DateTime字段,我们希望将其设置为默认的未来日期。例如:如果我们将时钟设置为默认值,它将自动填充当前日期和时间,但我们可以将1小时的默认时间设置为
future吗?

解决方案

MaritzTFSAdmin,


感谢您在此发帖。


默认控件可以'要实现这个功能。关于dateTime控件,您可以自定义它的格式:
https://msdn.microsoft.com /en-us/library/ms243845.aspx


您可以自定义日期时间控件并将其添加到工作项类型。以下是自定义控件的一些示例,您可以参考。


https://witcustomcontrols.codeplex.com/SourceControl/latest#WitCustomControls/VS2015.2/WitCustomControls/MultiValueControl/MultiValueControl.cs


We have a custom DateTime field and we would like to set it up with a defaulted future date. For example: if we set the Clock as the default it will automatically populate with the current date and time, but can we set the default time for 1 hour into the future?

解决方案

Hi MaritzTFSAdmin,

Thank you for posting here.

The default control can't be realize this feature. About the dateTime control, you can customize it format: https://msdn.microsoft.com/en-us/library/ms243845.aspx.

You could customize a datetime control and add it to work item type. Here is some examples of customize controls, you could have a reference at.

https://witcustomcontrols.codeplex.com/SourceControl/latest#WitCustomControls/VS2015.2/WitCustomControls/MultiValueControl/MultiValueControl.cs


这篇关于TFS 2013中为工作项DateTimeControl自定义日期格式。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆