public void OnDatePickerButtonClicked() { DialogManager.ShowDatePicker(Random.Range(1980, 2050), Random.Range(1, 12), Random.Range(1, 30), (System.DateTime date) => { ToastManager.Show(date.ToString("dd MMM, yyyy")); }, MaterialColor.Random500()); }
public void OnTimePickerButtonClicked() { DialogManager.ShowTimePicker(Random.Range(0, 12), Random.Range(0, 60), Random.value > 0.5f, (int hour, int minute, bool isAM) => { ToastManager.Show(hour + ":" + minute.ToString("00") + " " + (isAM ? "AM" : "PM")); }, MaterialColor.Random500()); }
public void OnDatePickerButtonClicked() { DialogManager.ShowDatePicker(Random.Range(1980, 2050), Random.Range(1, 12), Random.Range(1, 30), (System.DateTime date) => { ToastManager.Show(date.ToString("dd MMM, yyyy")); date1 = date.ToString("dd MMM, yyyy"); print(date.ToString("dd MMM, yyyy")); //Selected_Date.text = date1; mydate = date1; PlayerPrefs.SetString("ndate", mydate); }, MaterialColor.Random500()); }
public void OnTimePickerButtonClicked() { DialogManager.ShowTimePicker(DateTime.MinValue.AddHours(Random.Range(0, 24)).AddMinutes(Random.Range(0, 60)), time => { ToastManager.Show(time.ToShortTimeString()); time1 = time.ToShortTimeString(); print(time.ToShortTimeString()); print(time1); //PlayerPrefs.SetString("currentTime", time1); // Selected_time.text = (string)time1 ; mytime = time1; PlayerPrefs.SetString("ApTime", mytime); }, MaterialColor.Random500()); //showtime(); }
public void OnTimePickerButtonClicked() { DialogManager.ShowTimePicker(DateTime.MinValue.AddHours(Random.Range(0, 24)).AddMinutes(Random.Range(0, 60)), time => ToastManager.Show(time.ToString("hh:mm tt")), MaterialColor.Random500()); }