1. Changing Date and Time Format Strings

The default date/time format for all WIN-911 notifier formats is the long-time format (a culture-specific representation that includes seconds, e.g. 1:45:30 PM, 13:45:30, 01:45:30). In some cases, you may want to use a different format that doesn't include seconds or also includes the date. You can do this by copying an existing notifier format and changing the date/time format specifier. 

This article applies to the WIN-911 Standard, Interactive and Advanced licenses. A table of all available date/time format specifiers can be found at the end of this article. 

A. Changing the Date/Time Format Specifier

In the following example, An Email format is used but the process is the same for all notifiers. The goal of this example is to change the time format to not include seconds, so the desired output would be 9:53 AM. This is done by changing the date/time specifer.

  1. Open the WIN-911 Configuration GUI and navigate to Contact > Email > Formats
  2. Select a format in the collection selector on the left that you would like to change.
  3. If you selected a custom format, you can click the Edit button on the bottom right, if you selected a built-in format, you'll need to select the Create Copy icon on the bottom left.
  4. Locate the <ms:script> element in the format, it should be near the top.

    <ms:script language="C#" implements-prefix="specter">
             public string localTime(String str)
          DateTime dt = DateTime.Parse(str);
                return dt.ToLocalTime().ToString("T");

  5. The date/time format specifier is the T located in the following line, return dt.ToLocalTime().ToString(T);

  6. Using the Date/Time Format Specifier table below, you can see which letters or specifiers are used in order to get the desired format.

  7. Make the change and save the format. You will see a preview of the new time format on the right side of the screen. 

  8. Apply your new format to your Email Connections.

B.Date/Time Specifiers

Short date pattern.
6/15/2009 (en-US)

15/06/2009 (fr-FR)

2009/06/15 (ja-JP)

Long date pattern.
Monday, June 15, 2009 (en-US)

15 июня 2009 г. (ru-RU)

Montag, 15. Juni 2009 (de-DE)
Full date/time pattern (short time).
Monday, June 15, 2009 1:45 PM (en-US)

den 15 juni 2009 13:45 (sv-SE)

Δευτέρα, 15 Ιουνίου 2009 1:45 μμ (el-GR)
Full date/time pattern (long time).
Monday, June 15, 2009 1:45:30 PM (en-US)

den 15 juni 2009 13:45:30 (sv-SE)

Δευτέρα, 15 Ιουνίου 2009 1:45:30 μμ (el-GR)
General date/time pattern (short time).
6/15/2009 1:45 PM (en-US)

15/06/2009 13:45 (es-ES)

2009/6/15 13:45 (zh-CN)
General date/time pattern (long time).
6/15/2009 1:45:30 PM (en-US)

15/06/2009 13:45:30 (es-ES)

2009/6/15 13:45:30 (zh-CN)
"M", "m"
Month/day pattern.
June 15 (en-US)

15. juni (da-DK)

15 Juni (id-ID)
"O", "o"
Round-trip date/time pattern.
DateTime values:




DateTimeOffset values:

"R", "r"
RFC1123 pattern.
Mon, 15 Jun 2009 20:45:30 GMT
Sortable date/time pattern.

Short time pattern.
1:45 PM (en-US)

13:45 (hr-HR)

01:45 م (ar-EG)
Long time pattern.
1:45:30 PM (en-US)

13:45:30 (hr-HR)

01:45:30 م (ar-EG)
Universal sortable date/time pattern.
With a DateTime value: 2009-06-15 13:45:30Z

With a DateTimeOffset value: 2009-06-15 20:45:30Z
Universal full date/time pattern.
Monday, June 15, 2009 8:45:30 PM (en-US)

den 15 juni 2009 20:45:30 (sv-SE)

Δευτέρα, 15 Ιουνίου 2009 8:45:30 μμ (el-GR)
"Y", "y"
Year month pattern.
June, 2009 (en-US)

juni 2009 (da-DK)

Juni 2009 (id-ID)
Any other single character
Unknown specifier.
Throws a run-time FormatException.

Technical Support

To create a support case, you will need either your Maintenance Support number or your CD Tracking number. You can create a Case online or contact the product support line: (512)326-1011.