Add support of date and time picker #129
quickwind
started this conversation in
Feature request
Replies: 2 comments 1 reply
-
You can use the follow code: import datetime
date_str = input("Date input", type=DATE)
date = datetime.datetime.strptime(date_str, "%Y-%m-%d")
put_text(date_str, date) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Date and time input: import datetime
date_info = input_group("Date time input", [
input("Date input", type=DATE, name='date', required=True),
input("Time input", type=TIME, name='time', required=True),
])
date = datetime.datetime.strptime(date_info['date'] + date_info['time'], "%Y-%m-%d%H:%M")
put_text(date_info, date) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be great to add the support of date and time picker input.
Beta Was this translation helpful? Give feedback.
All reactions