This documentation is archived and is not being maintained.

Methods in Class

Visual Studio 2005

Visual J# supports the following methods in the class:

  • To set the default date/time pattern for a given format style and locale, use the following method. The default pattern will then be used when DateFormat.getDateTimeInstance is called.

    public static final locale, int formatStyle, String datePattern, String timePattern)
  • To set the default region to be used when the region is unspecified by a call to set the locale, use the following method. For example, if java.lang.Locale is created by passing an empty string for the country, as in new java.lang.Locale("en", "").

    public static final langName, String defRegion)

    The langName parameter is a two-letter language code. The defRegion parameter is a two-letter country code.