pp108 : getShortDateFormat

getShortDateFormat


Returns the short date format for the corresponding locale

Syntax

localeObject.getShortDateFormat()

Parameters

NA

Return Value


Returns the short 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.getShortDateFormat();//Will set "M/d/yyyy" for locale "en-US"

See Also


Locale, Locales