SimpleDateFormat Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SimpleDateFormat() |
Constructs a SimpleDateFormat using the default pattern for the default |
SimpleDateFormat(String) |
Constructs a SimpleDateFormat using the given pattern in the default |
SimpleDateFormat(IntPtr, JniHandleOwnership) | |
SimpleDateFormat(String, DateFormatSymbols) |
Constructs a SimpleDateFormat using the given pattern and locale-specific symbol data. |
SimpleDateFormat(String, ULocale) |
Constructs a SimpleDateFormat using the given pattern and locale. |
SimpleDateFormat(String, Locale) |
Constructs a SimpleDateFormat using the given pattern and locale. |
SimpleDateFormat(String, String, ULocale) |
Constructs a SimpleDateFormat using the given pattern , override and locale. |
SimpleDateFormat()
Constructs a SimpleDateFormat using the default pattern for the default FORMAT
locale.
[Android.Runtime.Register(".ctor", "()V", "", ApiSince=24)]
public SimpleDateFormat ();
- Attributes
Remarks
Constructs a SimpleDateFormat using the default pattern for the default FORMAT
locale. <b>Note:</b> Not all locales support SimpleDateFormat; for full generality, use the factory methods in the DateFormat class.
Java documentation for android.icu.text.SimpleDateFormat.SimpleDateFormat()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
SimpleDateFormat(String)
Constructs a SimpleDateFormat using the given pattern in the default FORMAT
locale.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=24)]
public SimpleDateFormat (string? pattern);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=24)>]
new Android.Icu.Text.SimpleDateFormat : string -> Android.Icu.Text.SimpleDateFormat
Parameters
- pattern
- String
- Attributes
Remarks
Constructs a SimpleDateFormat using the given pattern in the default FORMAT
locale. <b>Note:</b> Not all locales support SimpleDateFormat; for full generality, use the factory methods in the DateFormat class.
Java documentation for android.icu.text.SimpleDateFormat.SimpleDateFormat(java.lang.String)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
SimpleDateFormat(IntPtr, JniHandleOwnership)
protected SimpleDateFormat (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Icu.Text.SimpleDateFormat : nativeint * Android.Runtime.JniHandleOwnership -> Android.Icu.Text.SimpleDateFormat
Parameters
- javaReference
-
IntPtr
nativeint
- transfer
- JniHandleOwnership
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
SimpleDateFormat(String, DateFormatSymbols)
Constructs a SimpleDateFormat using the given pattern and locale-specific symbol data.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/icu/text/DateFormatSymbols;)V", "", ApiSince=24)]
public SimpleDateFormat (string? pattern, Android.Icu.Text.DateFormatSymbols? formatData);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/icu/text/DateFormatSymbols;)V", "", ApiSince=24)>]
new Android.Icu.Text.SimpleDateFormat : string * Android.Icu.Text.DateFormatSymbols -> Android.Icu.Text.SimpleDateFormat
Parameters
- pattern
- String
- formatData
- DateFormatSymbols
- Attributes
Remarks
Constructs a SimpleDateFormat using the given pattern and locale-specific symbol data. Warning: uses default FORMAT
locale for digits!
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
SimpleDateFormat(String, ULocale)
Constructs a SimpleDateFormat using the given pattern and locale.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/icu/util/ULocale;)V", "", ApiSince=24)]
public SimpleDateFormat (string? pattern, Android.Icu.Util.ULocale? loc);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/icu/util/ULocale;)V", "", ApiSince=24)>]
new Android.Icu.Text.SimpleDateFormat : string * Android.Icu.Util.ULocale -> Android.Icu.Text.SimpleDateFormat
Parameters
- pattern
- String
- loc
- ULocale
- Attributes
Remarks
Constructs a SimpleDateFormat using the given pattern and locale. <b>Note:</b> Not all locales support SimpleDateFormat; for full generality, use the factory methods in the DateFormat class.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
SimpleDateFormat(String, Locale)
Constructs a SimpleDateFormat using the given pattern and locale.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/util/Locale;)V", "", ApiSince=24)]
public SimpleDateFormat (string? pattern, Java.Util.Locale? loc);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/util/Locale;)V", "", ApiSince=24)>]
new Android.Icu.Text.SimpleDateFormat : string * Java.Util.Locale -> Android.Icu.Text.SimpleDateFormat
Parameters
- pattern
- String
- loc
- Locale
- Attributes
Remarks
Constructs a SimpleDateFormat using the given pattern and locale. <b>Note:</b> Not all locales support SimpleDateFormat; for full generality, use the factory methods in the DateFormat class.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
SimpleDateFormat(String, String, ULocale)
Constructs a SimpleDateFormat using the given pattern , override and locale.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Landroid/icu/util/ULocale;)V", "", ApiSince=24)]
public SimpleDateFormat (string? pattern, string? override, Android.Icu.Util.ULocale? loc);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Landroid/icu/util/ULocale;)V", "", ApiSince=24)>]
new Android.Icu.Text.SimpleDateFormat : string * string * Android.Icu.Util.ULocale -> Android.Icu.Text.SimpleDateFormat
Parameters
- pattern
- String
The pattern to be used
- override
- String
The override string. A numbering system override string can take one of the following forms: 1). If just a numbering system name is specified, it applies to all numeric fields in the date format pattern. 2). To specify an alternate numbering system on a field by field basis, use the field letters from the pattern followed by an = sign, followed by the numbering system name. For example, to specify that just the year be formatted using Hebrew digits, use the override "y=hebr". Multiple overrides can be specified in a single string by separating them with a semi-colon. For example, the override string "m=thai;y=deva" would format using Thai digits for the month and Devanagari digits for the year.
- loc
- ULocale
The locale to be used
- Attributes
Remarks
Constructs a SimpleDateFormat using the given pattern , override and locale.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.