Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How do I drop leading zeros from a date like 07/04/2001 to read 7/4/2001??

by c (Hermit)
on Nov 27, 2001 at 03:38 UTC ( [id://127659]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    ...
    use POSIX qw(strftime);
    
    my $date = strftime("%-m/%e/%Y", localtime);
    
  2. or download this
    my $date = strftime("%m/%e/%Y",localtime);
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-20 04:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found