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!
2 Replies
Baptiste
Baptiste3mo ago
Hey, so you could actually extract date and time in a separate Set Variable function To extract the time:
new Date({{Datetime}}).toLocaleTimeString()
new Date({{Datetime}}).toLocaleTimeString()
This suppose that you are collecting the input in a {{Datetime}} variable To extract date only:
new Date({{Datetime}}).toLocaleDateString()
new Date({{Datetime}}).toLocaleDateString()
claudiob
claudiob3mo ago
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!
Want results from more Discord servers?
Add your server