Display date selection side-by-side

Dear community,

is it possible to display the start and end date selection side-by-side?

Many thanks in advance!

Best, Chris

Hi Chris,

import streamlit as st

col1, col2 = st.beta_column(2)
with col1:
date1 = st.date_input(‘Start Date’)
with col2:
date2 = st.date_input(‘End Date’)

Here we are creating 2 columns side by side

##We can also create more columns side by side…and can choose their widths also
like… col1,col2 = st.beta_columns([1,2])…here columns width is in 1:2 ratio

Hope it helps
Regards,

Akash

1 Like

Hi Akash,

many thanks for the fast help! Appreciated it! :slight_smile:

1 Like