Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Answer: How do I find today's date?

by Agyeya (Hermit)
on May 10, 2004 at 05:58 UTC ( #351975=categorized answer: print w/replies, xml ) Need Help??

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

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)

Log In?

What's my password?
Create A New User
[LanX]: YM: talking about breaches ... did you read about Cambridge Analytica harvesting 50e6 FB profiles for political propaganda?
LanX ... oh ... Brexit delayed ... again ... oh wonder ...
[Your Mother]: Heh. I keeping seeing related headlines but my narcissism is a perihelion right now so I'm busy. :P

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (14)
As of 2018-03-19 13:17 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (240 votes). Check out past polls.