form_bloc
form_bloc copied to clipboard
DateTimeFieldBlocBuilder doesnt display the correct month
Hi there,
I am using DateTimeFieldBlocBuilder in my form to allow the user pick up a date. When the date is picked, it will show in the datefield but the month portion is not properly display. see attach pics
here is my DateTimeFieldBlocBuilder code:
here is date picker
below is the date display on the field. if you notice, the month is coming as 00.
if i choose another month, it will come up with some high numbers like 43 etc
also, i noticed a X icon on the far right. is it possible to have the option to disable it so it doesnt appear on the input field?
Hello, Change the DateFormat to
format: DateFormat('dd-MM-yyyy'),
Checkout https://github.com/GiancarloCode/form_bloc/issues/79
And set
showClearIcon: false,