Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in DateTimeFieldBlocBuilder #79

Closed
joaquimorg opened this issue May 2, 2020 · 2 comments
Closed

Error in DateTimeFieldBlocBuilder #79

joaquimorg opened this issue May 2, 2020 · 2 comments

Comments

@joaquimorg
Copy link

When I select a date
image

the value of the month is "00"

image

@GiancarloCode
Copy link
Owner

Hello, It is an error in the format I used in the example, later I will fix it :).

Read more about date formats : https://pub.dev/documentation/intl/latest/intl/DateFormat-class.html

Change this

   format: DateFormat('dd-mm-yyyy')

To this:

   format: DateFormat('dd-MM-yyyy')

P.D.

  • mm: minutes
  • MM: month

@joaquimorg
Copy link
Author

Many thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants