Splitting Date and Time from the DateTimePickerComponent

This issue has been solved. See solution.
Aryanos's picture

Does anyone know how to split the Date and Time from the DateTimePickerComponent? I tried using the Split Text Into Collection component but it seems to only displays the first and last parts to choose from and looking at the variable in the debugger, it shows there are three items in an array.

[0] Date
[1] Time
[2] AM/PM

After using the Split Text Into Collection component only Date and AM/PM is available from that variable. I tried coverting the DateTimePickerComponent to a string and parsing it but that doesn't work either. I've also tried setting the Delimiter to Space as well as Other with a space but that doesn't fix it. Any help would be greatly appreciated.

Aryanos's picture

Figured this out

Solution

Found out how to do this by using the Split Text Into Collection to get the date and then using the Output Short Time String to get the Time.