Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: date +%Y%m%d

by clemburg (Curate)
on Aug 21, 2001 at 17:21 UTC ( [id://106548]=note: print w/replies, xml ) Need Help??


in reply to Formatting date strings (was: date +%Y%m%d)

How about this:

> perl -MDate::Manip -e 'Date_Init("TZ=CET", "DateFormat=non-Us"); pri +nt UnixDate(ParseDate(shift), "%Y%m%d")' 20.03.2001 20010320

(Note conversion of German date input style to ISO style)

You might also want to have a look at create file with current date for name.

Christian Lemburg
Brainbench MVP for Perl
http://www.brainbench.com

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-19 03:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found