pp108 : setShortDateFormat

setShortDateFormat


Sets the short date format for the corresponding locale

Syntax

localeObject.setShortDateFormat(format)

Parameters

Parameter

Description

format

Required. The short 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.setShortDateFormat("MM/DD/YYYY");

See Also


Locale, Locales