Page 1 of 1

timestamp to string conversion error

Posted: Mon Nov 14, 2016 5:40 am
by deesh
Hi While i am trying to convert the string to timestamp getting below error.

Caould some one help to me.

Numeric value first converting into string and then that string value converting to timestamp.

using format in the transformer ::stringToTimestamp(var1,"%yyyy-%mm-%dd %hh:%nn:%ss")

Error: APT_CombinedOperatorController,1: Data string '20161114051100.' does not match format '%yyyy-%mm-%dd %hh:%nn:%ss': an integer was expected to match tag %nn.

Posted: Mon Nov 14, 2016 7:29 am
by chulett
Error says it all. The format mask you use needs to match the incoming data, not what you think the end result should be. This so it knows how to parse it. It already knows what the end result needs to be.