Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Answer: How do I find today's date?

( #351975=categorized answer: print w/ replies, xml ) Need Help??

Q&A > dates and times > How do I find today's date? contributed by Agyeya

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

Comment on Answer: How do I find today's date?
Download Code
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)

Log In?

What's my password?
Create A New User
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2015-10-07 02:56 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (170 votes), past polls