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.
- Store dates internally as "seconds since start of epoch". That way you can easily convert from one format to another.
- 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).
- Read chapter 3 of the "Perl Cookbook".
|