Changing Datetime control format in Team Foundation Server 2010

I was working on a new work item template (WIT) for Team Foundation Server 2010 and I encountered a requirement for a datetime field where the user could select a the date and the time a specific activity was done. The DateTimeControl for TFS work items displays only a date picker by default, which for this particular use case was not quite accurate enough.

Searching over the web I’ve found a good post of Nick Hoggard in order to do this.

Simply, you have to set the Format and CustomFormat attribute of the control in the work item definition. That’s all!

 

Advertisements

3 thoughts on “Changing Datetime control format in Team Foundation Server 2010

  1. Is it possiible to check the DatetimeControl field value in a work item type definition? For example I have Deadline field and I want to allow value >=CurrentDate

  2. Yes I already thought about that, but the problem is that the custom control is not working on the web access.
    Thanks for replying.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s