ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Date Field conversion in JCN

Post new topic  Reply to topic
 Date Field conversion in JCN « View previous topic :: View next topic » 
Author Message
Gaya3
PostPosted: Mon Dec 01, 2008 5:05 am    Post subject: Date Field conversion in JCN Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Mon Dec 01, 2008 5:10 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Gaya3
PostPosted: Fri Dec 12, 2008 4:40 am    Post subject: [SOLVED] Date Field conversion in JCN Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Date Field conversion in JCN
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.