on 07-09-2015 11:06 AM
Dear All,
In my PI development, I am getting a Date value (as a string) ; "2015-07-31T12:00:00.000-07:00" which is UTC time format. I need to convert this to Pacific time Zone (which is 07 hours back)
I understand that I need to write a UDF for this ,
simply can you please tell me how to subtract 07 hours from my input in a UDF ..
thank you all in advance.....
Good Morning Gurus,
I have implemented the UDF on SAP PO. It works fine, for example for Europe/Berlin to Etc/UTC but it does not work the other way around (so: Etc/UTC -> Europe/Berlin).
Any ideay why this could not work? Parameters are:
- format: yyyyMMddHHmmss
- from time zone: Etc/UTC
- to time zone: Europe/Berlin
Any idea is highly appreciated.
Best Regards
Acram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Fernando,
You need to consider the Date Format Pattern as well.
By looking your Date Format it is in yyyy-MM-dd'T'hh:mm:ss.SSS XXX format.
The XXX format pattern is only available from Java 7,if you have Java 6 then it will not recognize this pattern . If your date format is in yyyy-MM-dd'T'hh:mm:ss.SSS Z format then it will work with Java 6.
Check Java API for SimpleDateFormat patterns.
Best Regards
Amith Bhumu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.