Friday, August 28, 2009

Teamworks 6.2.1 - Customizing Default Date Format

In this video I show how to create custom variable types in Teamworks for storing date objects in formats other than what is provided ootb. The examples shown in the video include a custom date format "MM/dd/yyyy", a custom date/time format "MM/dd/yyyy h:mm a" and a timestamp format including milliseconds "MM/dd/yyyy h:mm:ss.SSS a"

Make sure to enable all features of the Authoring environment before trying this yourself, or you wont be able to see the options you need to configure when editing variable types.

With the release of Teamworks 6.2.2, the date picker coach control works differently. Now when you select a date, it will always set the date field using the date format found in the "presentation" tab of the date controls property pane. By default, the format is always set to "MM-dd-yyyy". If you used the above method to create your own date type, the date validation javascript will expect to see the date in the format "MM/dd/yyyy" and will now fail whenever someone uses this coach control to change a date.

You'll now need to perform the extra step of setting this property to the custom date format of "MM/dd/yyyy" as shown in the following screenshot.

No comments: