Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: How do I find today's date?

by Agyeya (Hermit)
on May 10, 2004 at 05:58 UTC ( [id://351975]=note: print w/replies, xml ) Need Help??


in reply to How do I find today's date?

You could also use Date::Manip
$date = ParseDate("today"); print "Today's Date is $date.\n";

Replies are listed 'Best First'.
Re: Answer: How do I find today's date?
by sacked (Hermit) on May 11, 2004 at 13:56 UTC
    If you want to make the date more human-readable, you can use Date::Manip::UnixDate to format it:
    $date = UnixDate( ParseDate("today") => '%b %e, %Y' ); print "Today's Date is $date.\n"; # MMM DD, YYYY (day is space-padded)

    --sacked

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-25 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found