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 » IBM MQ Java / JMS » need to get PutDate as string from MQMD using JAVA

Post new topic  Reply to topic
 need to get PutDate as string from MQMD using JAVA « View previous topic :: View next topic » 
Author Message
amiivas
PostPosted: Mon Mar 10, 2008 10:08 am    Post subject: need to get PutDate as string from MQMD using JAVA Reply with quote

Apprentice

Joined: 14 Oct 2007
Posts: 44
Location: Texas, USA

Hi,
I am currently in need of getting PutDate (value) i.e. date of the message flow from the MQMD in java compute node.

One way of getting the date from the message flow is by using GregorianCalendar and MbDate class., but I don't want to use that type as I need to conconate different items to get full date.

Is there any other easy way to extract date from MQMD or properties of the message.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Mar 10, 2008 10:58 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The PutDate is always going to be returned to you as an MbDate object from the Java API.

You can call getTime() on that to get the date information as a java.util.Date.
_________________
I am *not* the model of the modern major general.
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 » IBM MQ Java / JMS » need to get PutDate as string from MQMD using JAVA
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.