Questions tagged [flutter-datetime-picker]
21 questions
0
votes
1 answer
Flutter, couldn't convert string to Date time format
I got data input in TextField using showDatePicker. I converted the selected data to String and parsed it to the format dd-mm-yy using intl format. According to docs DateFormat('ymd') is the way to do that. But I get the error FormatException:…

Ganesh Sivakumar
- 149
- 1
- 16
0
votes
4 answers
How can I get day name from string date '22 May 2022' in flutter
I am a beginner in Flutter, I want to get day name [like Sunday] from a date, date i am getting from api which is basically a string like '22 May 2022'
How can i get that from this date '22 May 2022' ? Can anyone help me? any help should be…

alister james
- 3
- 1
- 4
0
votes
1 answer
Setting the Day Period on TimeOfDay
Im trying to set the TimeOfDay behind the scenes without input from the time picker. The time is set correctly, but the Day Period is incorrect. I'm assuming it grabs this data from the time picker, but since we are bypassing it, it defaults to the…

Gabriel
- 346
- 5
- 24
0
votes
1 answer
The instance member 'noww' can't be accessed in an initializer
i have this date picker in my app, and i want the last date to be 3 years ago from the time using the app how can i solve it, i tried to give the last date now.year -3 but it doesn't work! it keeps tell me that 'The instance member 'noww' can't be…

AhdOthman
- 47
- 4
0
votes
1 answer
Flutter How to pick the previous date that are disabled?
Date picker screenshot
hello I had a code here that can pick date and time but my problem is I cannot pick in the previous dates. who had an idea on how to open all the dates. like in my screenshot the 1 to 4 dates are disabled i want it to be…

Rayjay
- 25
- 8
-2
votes
2 answers
DateFormat dateFormat = DateFormat("yyyy-MM-dd"); To Month-Day-Year
DateFormat dateFormat = DateFormat("yyyy-MM-dd"); This line of code will not let me change the DateFormat to ("MM-dd-yyyy") without showing throwing an error in the app, or not displaying correctly.
I just need it to show MONTH-DAY-YEAR, NOT…
anon