Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Determining the dayname for the last day of any given month

by Herkum (Parson)
on Jun 19, 2006 at 11:37 UTC ( #556231=note: print w/ replies, xml ) Need Help??


in reply to Determining the dayname for the last day of any given month

Take a look at Datetime.
use DateTime; my $dt = DateTime->last_day_of_month( year => 2003, month => 10, hour => 1, minute => 30, second => 0, ); print "Last day of month is " . $dt->day_name() . "\n";
This creates a new object that assumes that it is the last day of the month. Then you just call the day_name(), your done!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://556231]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2016-06-26 22:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (331 votes). Check out past polls.