pp108 : getLongDateFormat

getLongDateFormat


Returns the long date format for the corresponding locale

Syntax

localeObject.getLongDateFormat()

Parameters

NA

Return Value


Returns the long date format

Example


The following example displays how this method is used.

importType("wcp.library.util.LocaleFormat");

importType("wcp.library.util.Locale");

var localeObject = new Locale(sLocale);//sLocale --> "en-US"
localeObject.getLongDateFormat();//Will return "dddd, MMMM dd, yyyy" for locale "en-US"

See Also


Locale, Locales