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 » extracting day of the year for date

Post new topic  Reply to topic
 extracting day of the year for date « View previous topic :: View next topic » 
Author Message
j1
PostPosted: Mon Nov 15, 2004 8:02 am    Post subject: extracting day of the year for date Reply with quote

Centurion

Joined: 23 Jun 2003
Posts: 139

hi,

does anyone know the ESQL for extracting the day of the year. i.e 11 Sep
is the 319th day of the year and i need that 319.

does anyone have the ESQL for this?

Thanks
Back to top
View user's profile Send private message
kirani
PostPosted: Mon Nov 15, 2004 12:08 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Try using Interval Datatype. I don't remember the exact systax but it'd be something like this,
Code:

DECLARE DAYS INT;
SET DAYS = (CURRENT_DATE) DAY;


If this does not work then subtract 1/1/<current_year> from current_date before casting it to Interval datatype.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » extracting day of the year for date
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.