Skip to main content
Question

Concatenating date and text fields into one date/time field

  • Dec 29, 2018 4:27 AM UTC
  • 2 replies
  • 132 views

I am trying to concatenate four fields into one date/time field but struggling with the general syntax.

I have a [start date] field which is a date field, i have an [hour] field which is text with options 1-12, a [minute] field with options :00, :15, :30, :45, and an [ampm] text field with options for AM/PM. 

Any idea how to combine these four fields into one date/time formula field??
This topic has been closed for replies.

2 replies

Try this

var TimeOfDay Time = ToTimeOfDay([hour] & [minute] & " " & [ampm]);

ToTimeStamp([start date], $Time)

  • Author
  • Qrew Cadet
  • Dec 29, 2018 4:44 AM UTC
Thank you so much! I had it over complicated but this makes it so simple.