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 » Days to Date conversion

Post new topic  Reply to topic
 Days to Date conversion « View previous topic :: View next topic » 
Author Message
dcjs
PostPosted: Wed Feb 28, 2007 11:25 am    Post subject: Days to Date conversion Reply with quote

Acolyte

Joined: 10 Nov 2006
Posts: 53
Location: IBM Bangalore

Can anybody help me in finding the ESQL command which takes integer and gives the date.

For Ex
If we give 59 it should return 02/28/2007.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Feb 28, 2007 11:35 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You could do
Code:
declare myDate DATE;
set myDate = DATE '1/1/2007'+ Interval '59' Days;


or some such.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
vsr
PostPosted: Wed Feb 28, 2007 11:36 am    Post subject: Re: Days to Date conversion Reply with quote

Centurion

Joined: 04 Apr 2006
Posts: 104

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ac16750_.htm
Back to top
View user's profile Send private message
dcjs
PostPosted: Wed Feb 28, 2007 12:34 pm    Post subject: Reply with quote

Acolyte

Joined: 10 Nov 2006
Posts: 53
Location: IBM Bangalore

Thanks,
Is there any function where if we give CURRENT_TIME as input and to find the different timings(pacific,Mountian e.tc)
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Feb 28, 2007 12:43 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The Info Center is your friend.

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/topic/com.ibm.etools.mft.doc/ak19550_.htm
_________________
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 » WebSphere Message Broker (ACE) Support » Days to Date conversion
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.