Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Calc last friday of month

by ikegami (Pope)
on Feb 03, 2009 at 04:50 UTC ( #740899=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $days_to_first_monday = ($dow + 7 - 1) % 7;
    
  2. or download this
    $days_to_last_friday = ($dow + 7 - 5) % 7 - 7;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://740899]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2017-04-25 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (466 votes). Check out past polls.