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 » Adding certain number of days to a current date and

Post new topic  Reply to topic
 Adding certain number of days to a current date and « View previous topic :: View next topic » 
Author Message
burman.abhishek
PostPosted: Thu Feb 22, 2007 7:39 am    Post subject: Adding certain number of days to a current date and Reply with quote

Apprentice

Joined: 23 Aug 2006
Posts: 37

I want to add certain number of days(variable) to the current date and find out the resultent date. Any functionality available in ESQL ?
The code has to be leap year compliant. Output should also be in date format ( yyyymmdd).
e.g Input date = 20070222 days = 45
Output should be 20070408 ( cause year is 2007 - non-leap year )
20070407 ( cause year is 2008- leap year )
_________________
With warm Regards,

Burman
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Feb 22, 2007 7:40 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Yes.

You can use the + sign.

ESQL supports Datetime and Interval types.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Feb 22, 2007 7:43 am    Post subject: Re: Adding certain number of days to a current date and Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

burman.abhishek wrote:
Any functionality available in ESQL ?


Just the datetime functions outlined in the ESQL manual.

These allow intervals to be added. Like days.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » Adding certain number of days to a current date and
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.