#assumes format dd/mm/yyyy (Australian format) #and vars $start and $end already in yyyymmdd format ($day, $month, $year) = split(/\//, $newsdate); $newsdate = "$year$month$day"; if ($newsdate >= $start && $newsdate <= $end) { #do stuff }
*~-}hotyopa{-~*
In reply to Another module-free alternative
by hotyopa
in thread Date comparisons
by cajun
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |