Share feedback, ideas and get community help

Updated 5 months ago

Date picker separated from time picker

Hi guys, i am making a connection from Typebot >> make >> HighLevel, When i parse the date with time, shows error on highlevel, only date will be parsed on the date field. I was wondering if we can separate the datepicker from the time picker or add a java time picker somehow after the date picker? Thank you!
B
c
7 comments
Hey, so you could actually extract date and time in a separate Set Variable function
To extract the time:
Plain Text
new Date({{Datetime}}).toLocaleTimeString()
This suppose that you are collecting the input in a {{Datetime}} variable
To extract date only:
Plain Text
new Date({{Datetime}}).toLocaleDateString()
Thank you!, I used a "set variable block" , on top assigned a variable, then I input: "new Date({{date}}).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })", this worked great, Thank you!
Add a reply
Sign up and join the conversation on Discord