i'm work with the format MM/yyyy
when i select the month firstly and select the year after the selected month will be initialized to 06
how i can solve this
my on confirm callback function
onConfirm: (value){
print('================== value ===============');
print(value);
String year = value.year.toString().substring(value.year.toString().length - 2);
String month = (value.month.toString().length == 1)?'0${value.month.toString()}':value.month.toString();
expDateAdd.text = '$month/$year';
print('================== date ===============');
print(expDateAdd.text);
}
i'm work with the format MM/yyyy when i select the month firstly and select the year after the selected month will be initialized to 06 how i can solve this my on confirm callback function onConfirm: (value){ print('================== value ==============='); print(value); String year = value.year.toString().substring(value.year.toString().length - 2); String month = (value.month.toString().length == 1)?'0${value.month.toString()}':value.month.toString(); expDateAdd.text = '$month/$year'; print('================== date ==============='); print(expDateAdd.text); }