my $dt = DateTime->now; print "system date ", $dt->strftime( "%m-%d-%Y" ); my $compare = $dt <=> $other_date;
Note: $other_date must be a DateTime object
In reply to Re: help on getting date
by fglock
in thread help on getting date
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |