If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > how to Get the First day of working week in informix

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-13-09, 00:18
Goren Amir Goren Amir is offline
Registered User
 
Join Date: Jul 2009
Posts: 4
Wink how to Get the First day of working week in informix

Hi All,
I'm Trying to get the First day of working Week.
( In my case, Sunday )

Any suggestion ?


Tnx.
Reply With Quote
  #2 (permalink)  
Old 07-13-09, 03:47
Chrys777 Chrys777 is offline
Registered User
 
Join Date: Jun 2008
Posts: 8
What exactly do you mean Goren? To perform something when the day is Sunday?

This tutorial on date processing and this example that calculates work days might help you.
Reply With Quote
  #3 (permalink)  
Old 07-13-09, 04:15
Goren Amir Goren Amir is offline
Registered User
 
Join Date: Jul 2009
Posts: 4
I want to automate date selection, so I can use it in Procedures and reports.

I need something like: MDY(MONTH(TODAY), 1, YEAR(TODAY))
( The first day of the current month ), but for a week.
Reply With Quote
  #4 (permalink)  
Old 07-13-09, 05:25
bigcalm bigcalm is offline
Registered User
 
Join Date: Jul 2009
Posts: 37
Are you just looking for the weekday() function?

eg..

select weekday(call_date), call_date
from calls
;
-- or --
select *
from calls
where weekday(call_date) = 1
;
-- 0 = sunday, 6 = saturday.
Reply With Quote
  #5 (permalink)  
Old 07-22-09, 01:44
Goren Amir Goren Amir is offline
Registered User
 
Join Date: Jul 2009
Posts: 4
Tnx a lot.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On