DatePickerDialog.UpdateDate Method
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
| Name | Description |
|---|---|
| UpdateDate(DateTime) |
Sets the current date shown by the dialog using a DateTime. |
| UpdateDate(Int32, Int32, Int32) |
Sets the current date. |
UpdateDate(DateTime)
Sets the current date shown by the dialog using a DateTime.
public void UpdateDate(DateTime date);
member this.UpdateDate : DateTime -> unit
Parameters
- date
- DateTime
The date to display in the dialog.
Remarks
This is a .NET-friendly overload that forwards to UpdateDate(Int32, Int32, Int32), converting the 1-based Month to Android's 0-based month value.
Applies to
UpdateDate(Int32, Int32, Int32)
Sets the current date.
[Android.Runtime.Register("updateDate", "(III)V", "GetUpdateDate_IIIHandler")]
public virtual void UpdateDate(int year, int month, int dayOfMonth);
[<Android.Runtime.Register("updateDate", "(III)V", "GetUpdateDate_IIIHandler")>]
abstract member UpdateDate : int * int * int -> unit
override this.UpdateDate : int * int * int -> unit
Parameters
- year
- Int32
the year
- month
- Int32
the month (0-11 for compatibility with
Calendar#MONTH)
- dayOfMonth
- Int32
the day of month (1-31, depending on month)
- Attributes
Remarks
Sets the current date.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-08-03 UTC.
Android reference for android.app.DatePickerDialog.updateDate.
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.