Well, assuming I got the 3 char months right, this bit of code should do it.

$MDayNo = Val(@MDayNo)
If $MDayNo < 10
$MDayNo = "0" + $MDayNo
EndIf

$MonthNo = Val(@MonthNo)
$AllMonths = "JanFebMarAprMayJunJulAugSepOctNovDec"
$Search = SubStr($AllMonths,($MonthNo * 3 - 2),3) + "-" + $MDayNo

? "$$MDayNo = " + $MDayNo
? "$$MonthNo = " + $MonthNo
? "$$Search = " + $Search

For the YYYYMMDD format

$Date = @Date
$Sdate = (Substr($Date,1,4)+Substr($Date,6,2)+Substr($Date,9,2))
$Search = $Sdate

Then all you need do is substitute the hard coded search criteria with $Search and you're good to go.

If instr($line, $Search) <> 0

This of course is only if you run the script on the day the log entry was created. If you run it on the following day then you'll need to do date math as Erik suggested.

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.