Try leaving the variables in the pipeline. Provided you do not overwrite them in your Flow, you will have currentPattern and newPattern available for mapping anytime.
Or, you could revise your SQL statement to select the DATE object in the proper format.
Try: SELECT TO_CHAR(COLUMNNAME,‘MM/DD/YY hh:MI:SS AM’) AS NEWCOLUMNNAME FROM TABLE
#Integration-Server-and-ESB#webMethods#Flow-and-Java-services