Separate date time string into 2 separate string or entity

0
Hi All, Is there a way to split a string with date and time ("12-10-2016 9:48:47") into separate strings or entity?    
asked
1 answers
2

Rene,

You can use a substring function in combination with a find function to split the string.

Say your datetime in a string is called $var then the function would be substring($var, 0, find($var, ' ')) to get the date portion.

For the time portion use substring($var, find($var, ' ')+1)

answered