how to receive Date-Time picker value into Java service?

Hi,

I have created data/time picker to send values to my IS service in which I’m sending it to JAVA service to convert to string

IDataCursor pipelineCursor = pipeline.getCursor();
Date str = new Date (IDataUtil.getString( pipelineCursor, “DateTime” ));
SimpleDateFormat ft = new SimpleDateFormat (“yyyy-MM-dd HH:mm:ss”);
IDataUtil.put(pipelineCursor, “Result”, ft.format(str));
pipelineCursor.destroy();

Every time only if click from CAF for the second time correct values getting send after this date conversion step. it looks something wrong with this JAVA servivce.

Also, I’m getting warning as Date(String) got deprecated.

Rgds,
Sam

Hi,

This issue is with CAF portlet project not with java service.
Recreating the protlet fixed the issue.

Rgds,
Sam