Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2014-08-21 19:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (143 votes), past polls