Forum Discussion
DougHenning1
Community Manager
Combine the date and time with space separator, then use time.parse to parse the combined string into a datetime value:
------------------------------
Doug Henning
------------------------------
{% set reportDate = "2023-01-16" %}
{% set reportTime = "4:37 pm" %}
{% set reportStart = time.parse(reportDate ~ " " ~ reportTime) %}
{{ reportStart.strftime("%FT%T.%f")[:-3] ~ "Z" }}
------------------------------
Doug Henning
------------------------------
JeremyLahners
2 years agoQrew Cadet
Beautiful solution! Thank you so much!
------------------------------
Jeremy Lahners
LeadBaller
------------------------------
------------------------------
Jeremy Lahners
LeadBaller
------------------------------