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

If you can guarantee the year is never going to start with a 0 (ie, 2001 vs 01), then ...

$date =~ s/\b0//g;

Originally posted as a Categorized Answer.

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