Using other calendar layouts

Hello,
I should first thank the community for all the good work that you’ve put in to make Streamlit possible. To me, so far a novice to coding, it’s been a great UI to my Data-Analysis project.
I was wondering if it is possible to introduce other calendar layouts for the date_picker method such as Jalaly (a.k.a Shamsi) instead of Gregorian.

That would help me alot.
Thanks.

2 Likes

Hi @Pejhan_A, welcome to the Streamlit community!

Does this library accomplish what you’re asking? If so, then this would be a perfect project for a Streamlit Component, which is the custom widget framework we’ll be releasing in the coming week(s).

http://babakhani.github.io/PersianWebToolkit/doc/datepicker/index.html

Hi @randyzwitch, thanks for your prompt reply.
And sorry for my late response.
Yes that definitely works, I’m very much waiting for the new component to arrive then.

1 Like

The Streamlit Components framework was released on Tuesday as part of the 0.63.0 release of Streamlit:

https://docs.streamlit.io/en/stable/streamlit_components.html

So at this point, it’s a matter of someone taking the initiative to implement this. I’m not familiar with the Shamsi calendar, so I’m probably not the right person to implement this, but hopefully it doesn’t take much effort for someone to do.

4 Likes