|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Find out a specific day is in the first week of the current |
« View previous topic :: View next topic » |
Author |
Message
|
mymq |
Posted: Tue Jan 22, 2008 5:50 pm Post subject: Find out a specific day is in the first week of the current |
|
|
Centurion
Joined: 01 Mar 2007 Posts: 101 Location: US-Greenwille
|
Hi,
Thankx a lot for your advance helo.
I have a requirement to find out the specific DAY's availability in the first week of the current year.
Fo ex, in 2008, the first week starts from 1st Jan-5th Jan. I need to find out the availability of Monday in ths first week. In this example, i should get the answer as FALSE.
Incase of Wednesday, i should get TRUE.
Please help me if you guys have any DATE related ESQL code.
Have a great day _________________ --SRK-- |
|
Back to top |
|
 |
mymq |
Posted: Tue Jan 22, 2008 5:54 pm Post subject: |
|
|
Centurion
Joined: 01 Mar 2007 Posts: 101 Location: US-Greenwille
|
Sorry, i forgotten to mention the WBIMB version, it is 5.0. _________________ --SRK-- |
|
Back to top |
|
 |
Bill.Matthews |
Posted: Tue Jan 22, 2008 8:13 pm Post subject: Re: Find out a specific day is in the first week of the curr |
|
|
 Master
Joined: 23 Sep 2003 Posts: 232 Location: IBM (Retired)
|
mymq wrote: |
Hi,
Thankx a lot for your advance helo.
I have a requirement to find out the specific DAY's availability in the first week of the current year.
Fo ex, in 2008, the first week starts from 1st Jan-5th Jan. I need to find out the availability of Monday in ths first week. In this example, i should get the answer as FALSE.
Incase of Wednesday, i should get TRUE.
Please help me if you guys have any DATE related ESQL code.
Have a great day |
Check out this set of Q&As
http://mqseries.net/phpBB2/viewtopic.php?t=7904&highlight=dayofweek&sid=f6a47344e3fef9ba712ae28c360ebd20
It should help you get started ... of course, if you move to WMB V6 - then you don't need all of the code just to get the day of the week. _________________ Bill Matthews |
|
Back to top |
|
 |
mymq |
Posted: Tue Jan 22, 2008 8:40 pm Post subject: |
|
|
Centurion
Joined: 01 Mar 2007 Posts: 101 Location: US-Greenwille
|
Hi thankx a lot.
But, i have seen this code. But, it is having some bug is there. It does not give correct answer always.
Let me know if you have any other code.
Thankx a lot once again. _________________ --SRK-- |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jan 23, 2008 1:14 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mymq wrote: |
But, i have seen this code. But, it is having some bug is there. It does not give correct answer always.
|
What bug? What happens? What happens when you try and fix it? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|