Of course, this leaves you with a 4-digit year, but that's easy enough to fix:my ($mday, $mon, $year, $wday) = (localtime)[3..6]; $mon += 1; $year += 1900;
See perldoc -f localtime for more information.$year =~ s/^\d\d//;
Update: Modified to include $wday and perldoc reference.
If things get any worse, I'll have to ask you to stop helping me.
In reply to Re: Help with dates
by shockme
in thread Help with dates
by mhearse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |