Exemplo n.º 1
0
 private void DateToFormat(int year, int month, int dayOfMonth)
 {
     Java.Util.Formatter dateFormatter = new Java.Util.Formatter();
     dateFormatter.Format("%d/%02d/%02d", year, month + 1, dayOfMonth);
     dateTextView.Text = dateFormatter.ToString();
 }
Exemplo n.º 2
0
 private void TimeToFormat(int hour, int minute)
 {
     Java.Util.Formatter timeFormatter = new Java.Util.Formatter();
     timeFormatter.Format("%02d:%02d", hour, minute);
     timeTextView.Text = timeFormatter.ToString();
 }