cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding the date format

Former Member
0 Kudos

Hi,

Is there any way in adobe forms like smartforms to display the date in the following format : 29th september 2006 where 'th' is the superscript of 29..

Regards,

Shekhar

Accepted Solutions (0)

Answers (1)

Answers (1)

nol_hendrikx
Active Contributor
0 Kudos

This is not completely your answer to your question, but maybe you can tweak around with it.

As a date format you can use: date(uk_UK){DD MMMM, YYYY}

Check the Adobe LiveCycle Designer help for it:

Defining complex field patterns

In addition to defining simple patterns for date/time fields, numeric fields, and text fields, you can define a locale-specific pattern or handle variable patterns.

Defining a locale-specific pattern

If you want to force a locale on a pattern, regardless of the locale that has already been assigned to an object, you can define a locale-specific pattern. The syntax of a locale-specific pattern is defined as follows:

category_name(locale_name) where category_name can be date, time, num, or text. locale_name is identified by a language and/or country code, as defined in RFC 1766 (Tags for the Identification of Languages, 1995). pattern is the simple pattern for processing values. For example, to force a date/time field to translate a date into the French language according to France's country code, you would define the pattern as follows: date(fr_FR){DD MMMM, YYYY} Handling variable patterns In cases where the user input or bound data is available in more than one format (for example, telephone numbers may or may not have a three-digit area code), you can define a pattern that accounts for the differences. The syntax for defining a number of acceptable patterns is as follows: category_name|category_name|category_name

where each pattern is separated by a vertical bar (|). You can specify an unlimited number of patterns. For example, the following construct handles two different text patterns:

text{9999999}|text{999999*9999}