Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by Maclir (Curate)
on Nov 27, 2001 at 08:57 UTC ( [id://127724]=note: print w/replies, xml ) Need Help??


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

Some comments on dates.
  1. Store dates internally as "seconds since start of epoch". That way you can easily convert from one format to another.
  2. When showing dates (on a screen, or a printed report) DO NOT invite confusion between US and non-Us people by the ambiguous m/d/yyyy (or was that d/m/yyyy) format. Use the three character abbreviation for the month. So the date would be shown as Jul 4 2001 (or 7 Apr 2001).
  3. Read chapter 3 of the "Perl Cookbook".
  • Comment on Re: How do I drop leading zeros from a date like 07/04/2001 to read 7/4/2001??

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2024-04-19 14:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found