Forum Discussion

RoyB's avatar
RoyB
New Contributor III
5 years ago

DateTime Parameter can't save to datetime field

I’m calling a child pipeline to do an insert
I’m passing a datetime field, but in the child parameter it is now a string
How do I convert it back to datetime?

In the parent before I execute the child the value is:
1996-08-26T00:00:00.000

In the child, the value is: (I’ve saved to a string field to test)
{“_snaptype_localdatetime”:“1996-08-26T00:00:00.000”}

How do I convert this back to a date?

I’ve tried Date.parse(_StartDate) and it doesn’t recognise the parameter value as something that can be converted to a date