cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi,

In need to convert following date '20130708' (YYYYMMDD) into '2013-07-08T00:00:00+05:30' format in PI mapping.

Is it possible to convert using PI mapping functions.

If Yes then how?

If No then is there any other method by which conversion can be done?

Thanks & Regards,

Vinit.

0 Likes
View Entire Topic
praveen_sutra
Active Contributor
0 Likes

hi Vinit,

you can use below code in the UDF after modifying it.

{

Date dNow = new Date();

SimpleDateFormat ft = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");

System.out.println("Current Date: " + ft.format(dNow));

}

thanks and regards,

Praveen T