on 02-06-2014 4:44 AM
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Abhinav/Hanee,
I am just trying to understand apart from posting screenshot what extra information is there in ur reply becoz whatever u have posted has already been shared above?
IMO it's against SCN Rules of Engagement. So please don't take it otherwise and try to avoid posting reply which has already been shared in the same thread.
Thanks
Amit Srivastava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
U want to convert date into some specific timezone format? If yes then u need a java code, otherwise u can just use date transformation function.
In Date function:
Input will be: yyyyMMdd
Output will be: yyyy-MM-dd'T'00:00:00+5:30
Thanks
Amit Srivastava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vinit - Why don't you use concat function. I believe the later part is fixed value as you don't have timestamp information from the sender.
Ofcourse to convert the date part you can use standard function with input yyyyMMdd and output yyyy-MM-DD then use concat..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.