Partilhar via


FAQ #4: How do you change to format of a date on a work item?

Recently, we were asked: A customer wants to format the dates in the Work Item to the format of DDMMMYYY (e.g. 05Feb2008) instead of the standard MMDDYYYY (e.g. 02032008)

This answer comes from Aliaksei Baturytski on our team:

You can change the way date/time fields appear on the form by using DateTimeControl control type in the form definition XML with the following attributes:

Type: DateTimeControl

Format: Long/Short/Time/Custom (members of DateTimePickerFormat enumeration)

CustomFormat: custom format for the date field.

By setting format to “Custom” and specifying your format you can achieve what you want. However, please be aware that customization has effect only on the work item form; you cannot change appearance of the date/time fields in the results list of a query.

Comments

  • Anonymous
    February 05, 2008
    PingBack from http://dating.anything08.com/faq-4-how-do-you-change-to-format-of-a-date-on-a-work-item/

  • Anonymous
    February 11, 2008
    Eugene Zakhareyev on Building VS2008 projects in VS2005. The Teams WIT Tools Blog on FAQ #4: How do you...

  • Anonymous
    May 20, 2008
    Recently, we were asked: A customer wants to format the dates in the Work Item to the format of DDMMMYYY (e.g. 05Feb2008) instead of the standard MMDDYYYY (e.g. 02032008) This answer comes from Aliaksei Baturytski on our team: You can change the way date/tim

  • Anonymous
    May 23, 2008
    Recently, we were asked: A customer wants to format the dates in the Work Item to the format of DDMMMYYY (e.g. 05Feb2008) instead of the standard MMDDYYYY (e.g. 02032008) This answer comes from Aliaksei Baturytski on our team: You can change the way date/tim