AnsweredAssumed Answered

Formatting the date in the MessageFormatter adapter (outbound)

Question asked by getiem on Sep 10, 2014
Latest reply on May 21, 2015 by rsunderman-esristaff

I have an incoming event through the FeatureService input. 2 Fields are marked as Date.

 

How can I format these dates into the right format.

 

TCP-out displays the date formatted like this:

Wed Sep 10 16:16:57 CEST 2014

MessageFormatter displays the date formatted the same way this (just another date/time);

Tue Sep 09 16:08:35 CEST 2014

 

I want to have this format:

2014-09-10 14:07:42

With the SimpleDateFormatter, it would be this format:

"yyyy-MM-dd HH:mm:ss"

 

Can I use a Calculate Field processor to format the field to a string field?

Outcomes