How to only enter a date that is a weekday in Python
If you just want a weekday, you should put a select or a textbox, not a date picker.
If you put a select, you can disable the days before today so you don't even need a validation
I'm creating a web applcation in Python and I only want the user to be able to enter a weekday that is older than today's date. I've had a look at isoweekday() for example but don't know how to integrate it into a flask form. The form currently looks like this:
appointment_date = DateField('Appointment Date', format='%Y-%m-%d', validators=[DataRequired()])
Thanks