I have the same problem as described here: http://www.markhneedham.com/blog/2017/03/06/neo4j-apoc-date-parse-java-lang-illegalargumentexception-illegal-pattern-character-t-java-text-parseexception-unparseable-date-2012-11-12t084615z/
Is there anyway around it?
In short this call
RETURN apoc.date.parse("2016-01-01T15:54:11", 's','yyyy-MM-dd'T'HH:mm:ss') as value2
gives the error:
Invalid input 'T': expected whitespace, '.', node labels, '[', "=~", IN, STARTS, ENDS, CONTAINS, IS, '^', '*', '/', '%', '+', '-', '=', "<>", "!=", '<', '>', "<=", ">=", AND, XOR, OR, ',' or ')' (line 1, column 63 (offset: 62))
"RETURN apoc.date.parse("2016-01-01T15:54:11", 's','yyyy-MM-dd'T'HH:mm:ss') as value2"
This call
RETURN apoc.date.parse("2016-01-01 15:54:11", 's','yyyy-MM-ddTHH:mm:ss') as value2
gives the error
Failed to invoke function `apoc.date.parse`: Caused by: java.lang.IllegalArgumentException: Illegal pattern character 'T'