Formats for DateOutputFormatString and DateTimeOutputFormatString

If you are not configuring Unica Campaign for multiple locales, you can set the values for DateOutputFormat and DateTimeOutputFormatconfiguration parameters for any of the formats specified specified for format_str in the DATE_FORMAT macro, as shown in the following table.

However, if you need to configureUnica Campaign for multiple locales (that is, if you have users with various languages and locales), DO NOT use date formats that contain 3-letter months (MMM), %b (abbreviated month name), or %B (full month name). Instead, you should use one of the delimited or fixed formats that have a numeric value for the month. For more details about the multi-locale feature, see About the multi-locale feature.

%a - Abbreviated weekday name

%A - Full weekday name

%b - Abbreviated month name

%B - Full month name

%c - Date and time representation appropriate for locale

%d - Day of month (01 - 31)

%H - Hour in 24-hour format (00 - 23)

%I - Hour in 12-hour format (01 - 12)

%j - Day of year (001 - 366)

%m - Month number (01 - 12)

%M - Minute (00 - 59)

%p - Current locale's AM/PM indicator for 12-hour clock

%S - Second (00 - 59)

%U - Week of year, with Sunday as first day of week (00 - 51)

%w - Weekday (0 - 6; Sunday is 0)

%W - Week of year, with Monday as first day of week (00 - 51)

%x - Date representation for current locale

%X - Time representation for current locale

%y - 2-digit year (00 - 99)

%Y - 4-digit year

%z, %Z - Time zone name or abbreviation; no output if time zone is unknown

%% - Percent sign

Note: Characters that are part of the format and are not preceded by a percent sign (%) are copied unchanged to the output string. The formatted string must fit in 16 bytes or less.Use the # character to eliminate any leading 0. For example, %d produces 2-digit numbers in the range (01 - 31), while %#d produces 1- or 2-digit numbers as appropriate (1 - 31). Similarly, %m gives (01 - 12) while %#m gives (1 - 12).