I have data with two columns; a date and a time stamp.
The timestamp is in AM/PM, but the convert functions do not work. AMtoPM parsing gives problems because the data contains both 12AM/PM. The parsing function can only deal with values 0-11.
How can I combine these columns into one column with date + time?
Hello @BasT ,
You can design a workflow like the attached image and configure the node with reference to the attached images.
you can get the output that you want.
The format mask I’m using here is yyyy-MM-dd. Note that it is case-sensitive so capital MM represents months (lower case mm would be “minutes”). I’m replacing the original Date column with a String column.
I’m then using String Manipulation to join the two strings together
Once again note that this format mask is case-sensitive. h means hour in range 1-12 and a means AM/PM indicator. The codes are available in the documentation for the node.
Also of note though is the Locale setting. As your AM/PM are UPPER case, use a locale that has this format such as en-US.
If it were lower case am/pm, use a different locale such as en-GB which supports the lower case version. That’s a small annoyance of mine and it won’t be obvious from any documentation.
Hi @BasT in terms of “no suitable format found”, the list on the Date&Time nodes are not exhaustive and can be overtyped if it doesn’t have one readily available.