Question about date_input and the start of the day of the week

Good afternoon, I ran into a problem when using date_input. For some reason, the beginning of the week starts on Sunday, is there a way to change the beginning of the week to Monday?

image

part from source code:

2 Likes

I’d be interested in this too :eyes:

In my country (France) it’s very uncommon to start weeks on Sundays rather than Mondays and it tends to confuse users of my apps.

Also some businesses have business weeks starting on different days (I work in the music industry where weeks go from Fridays to Thursdays) so being able to customize this behavior would be great!

+1. It is common in Norway as well to start the week on Monday. Often I find that I’ve selected the wrong date in my apps due to this!

Is there a workaround, or a feature request? Guess it could be easily fixed by passing an argument to st.date_input(setfirstkweekday=Monday) or something, or perhaps looking into the users locale?

Hi folks, there is already a feature request here: st.date_input: Starting day in a week Β· Issue #5215 Β· streamlit/streamlit Β· GitHub

If you want to help, please upvote this feature request by adding a thumbs-up reaction to the initial post. The more thumbs-ups, the more likely this feature gets implemented (and sooner) :slight_smile:

Also looking for this. Any solution?
Thanks