The incoming datetime variable is
set var [lindex $xlateInVals 0];
set part [string range $var 0 [expr {[string first “T” $var] -1 }]]
echo “>>$part”
set xlateOutVals [clock format [clock scan $part] -format {%Y-%m-%d}]
But CL is producing error:
Warning: The format of source value ‘2014-04-20’ is inconsistent with its type: ‘xmlts’
[0:TEST] Message encode warnings: Error generated during parsing. – Element ‘METER_DATE’ got Datatype error, Type:SchemaDateTimeException, Message:buffer not initialized yet!. – Line 1, Col 914
Output validation errors: Error generated during parsing. – Element ‘METER_DATE’ got Datatype error, Type:SchemaDateTimeException, Message:buffer not initialized yet!. – Line 1, Col 914
[0:TEST] Error generated during parsing. – Element ‘METER_DATE’ got Datatype error, Type:SchemaDateTimeException, Message:buffer not initialized yet!. – Line 1, Col 914
XML Error Source – Message Body for mid [0.0.1]
1:’ER_NAME>ADX01