Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Methods in com.ms.vjsharp.text.FormatDefaults Class

Methods in com.ms.vjsharp.text.FormatDefaults Class

Visual Studio 2005

Visual J# supports the following methods in the com.ms.vjsharp.text.FormatDefaults 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 com.ms.vjsharp.text.FormatDefaults.set(Locale 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 com.ms.vjsharp.text.FormatDefaults.setDefaultRegion(String langName, String defRegion)
    

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

Community Additions

ADD
Show:
© 2015 Microsoft