Udostępnij za pośrednictwem


SimpleDateFormat.Set2DigitYearStart(Date) Method

Definition

Sets the 100-year period 2-digit years will be interpreted as being in to begin on the date the user specifies.

[Android.Runtime.Register("set2DigitYearStart", "(Ljava/util/Date;)V", "GetSet2DigitYearStart_Ljava_util_Date_Handler")]
public virtual void Set2DigitYearStart (Java.Util.Date? startDate);
[<Android.Runtime.Register("set2DigitYearStart", "(Ljava/util/Date;)V", "GetSet2DigitYearStart_Ljava_util_Date_Handler")>]
abstract member Set2DigitYearStart : Java.Util.Date -> unit
override this.Set2DigitYearStart : Java.Util.Date -> unit

Parameters

startDate
Date

During parsing, two digit years will be placed in the range startDate to startDate + 100 years.

Attributes

Remarks

Sets the 100-year period 2-digit years will be interpreted as being in to begin on the date the user specifies.

Added in 1.2.

Java documentation for java.text.SimpleDateFormat.set2DigitYearStart(java.util.Date).

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