|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Date Field conversion in JCN |
« View previous topic :: View next topic » |
Author |
Message
|
Gaya3 |
Posted: Mon Dec 01, 2008 5:05 am Post subject: Date Field conversion in JCN |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
I am getting Date_Time Value from XML as DateTime DataType
<Date_Time>2008-12-01T11:11:11</Date_Time> (Where DataType is DateTime in XMLSchema
In the JCN, i coded this and i could retrieve this as an Object, and i stored it in an Environment Variable, its printing as follows
TIMESTAMP '2008-12-01 11:11:11' (TIMESTAMP)
I presume the data type after retrieving it is TIMESTAMP.
I want to convert this to 20081201 - Date (Date Data type as well as String Data Type)
and i want to get time as 111111 - Time (Time Data Type as well as String Data Type)
how can i achieve this, give some inputs _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Dec 01, 2008 5:10 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
You need to look into the TimeStamp and Date classes in Java. It would also help to look at the SimpleDateFormat class. Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Gaya3 |
Posted: Fri Dec 12, 2008 4:40 am Post subject: [SOLVED] Date Field conversion in JCN |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
This been resolved.
Here is a link, which furnish you good idea about the Data Type mapping, this will really help while working on MB Transformation (JCN)
http://edocs.bea.com/wls/docs100/webserv/data_types.html#wp210237 _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|