Use f(x) to convert date format

If a property has a date time string like:
“23/05/2019 23:54:34”
which is “dd/MM/yyyy hh:mm:ss”, common in Europe, we can use f(x) to convert it to a format acceptable by GraphXR, “yyyy-MM-dd hh:mm:ss”:

In this case, created_str_1 has the European format date string. We add it and use created_str_2 as output property name, choose toCustom as the mapping function, and enter:

(propVal,props) => propVal.split(’ ‘)[0].split(’/’)[2] + ‘-’ +propVal.split(’/’)[1] + ‘-’+propVal.split(’/’)[0] + ’ ’ + propVal.split(’ ')[1]

Click Run to convert