How can I set the day of the week I need for the date? Using DateTime or Jiffy? It is also possible to use another library if you cannot use these.
For example, on Kotlin with Joda DateTime, I can do this:
scheduleDate.withField(DateTimeFieldType.dayOfWeek(), 3) // set weekday Wednesday
Is it possible to do the same on Flutter?
2
Answers
I think it can be approach like this way: