pp108 : setLongDateFormat

setLongDateFormat


Sets the long date format for the corresponding locale

Syntax

localeObject.setLongDateFormat(format)

Parameters

Parameter

Description

format

Required. Sets the long date format

Return Value


NA

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.setLongDateFormat("dddd, MMMM dd, yyyy");

See Also


Locale, Locales