use Date::Object ; my $d = Date::Object->new_local(2005 , 1 , 5) ; my $d_end = $d->clone->set(undef,undef,31) ; ## set(YYYY , MM , DD) print "date: $d\n" ; print "date end: $d_end\n" ; if ( $d == $d_end ) { print "Date is the last day of month!\n" ; }