Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/Mono.Android/Android.App/DatePickerDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ public DatePickerDialog (Android.Content.Context context, EventHandler<DateSetEv
public DatePickerDialog (Android.Content.Context context, int theme, EventHandler<DateSetEventArgs> callBack, int year, int monthOfYear, int dayOfMonth)
: this (context, theme, new IOnDateSetListenerImplementor () { Handler = callBack }, year, monthOfYear, dayOfMonth) {}

/// <summary>
/// Sets the current date shown by the dialog using a <see cref="System.DateTime" />.
/// </summary>
/// <remarks>
/// This is a .NET-friendly overload that forwards to
/// <see cref="UpdateDate(int, int, int)" />, converting the 1-based
/// <see cref="System.DateTime.Month" /> to Android's 0-based month value.
/// </remarks>
/// <param name="date">The date to display in the dialog.</param>
public void UpdateDate (DateTime date)
{
UpdateDate (date.Year, date.Month - 1, date.Day);
Expand Down
Loading