here is the the section of the code that is giving me fits.
defining of the range var
cutoff = date()-1
then the retrieval of the logs
For Each objEvent in colLoggedEvents
if WMIDateStringToDate(objEvent.TimeGenerated) >= CutOff Then
Do While mycounter < 20
mycounter = mycounter + 1
noevents = "events"
res.Writeline ("<TR>"

res.Writeline ("<TD><font face=Verdana color=#000080 size=1> " & objEvent.ComputerName & "</font></TD>"

res.Writeline ("<TD align ='center'><font face=Verdana color=#000080 size=1> " & objEvent.EventIdentifier & " / " & objEvent.LogFile &"</font></TD>"

res.Writeline ("<TD><font face=Verdana color=#000080 size=1> " & objEvent.SourceName & "</font></TD>"

res.Writeline ("<TD><font face=Verdana color=#000080 size=1> " & WMIDateStringToDate(objEvent.TimeGenerated) & "</font></TD>"

if objEvent.type = "warning" Then
res.Writeline ("<TD align ='center' bgcolor=#FFFF00><font face=Verdana color=#000080 size=1> " & objEvent.Type & "</font></TD>"

Else
res.Writeline ("<TD align ='center' bgcolor=#FF0000><font face=Verdana color=#000080 size=1> " & objEvent.Type & "</font></TD>"

End if
res.Writeline ("<TD><font face=Verdana color=#000080 size=1> " & objEvent.Message & "</font></TD>"

res.Writeline ("</TR>"

Loop
Else
End If
Next
this is the function that is susposed to format the dates, and i thought it was doing a pretty good job. in testing it is pulling the day first, then the month. and i can see it formatted like i want. i am just not pulling the logs i expect.
Function WMIDateStringToDate(dtmDate)
WMIDateStringToDate = CDate(Mid(dtmDate, 7, 2) & "/" & _
Mid(dtmDate, 5, 2) & "/" & Left(dtmDate, 4) _
& " " & Mid (dtmDate, 9, 2) & ":" & _
Mid(dtmDate, 11, 2) & ":" & Mid(dtmDate, _
13, 2))
End Function
I actually attempted to compensate for the difference in formatting dates between the two countries. but i just can't seem to nail down the problem. what i can get it to do is give me everything except the last 24 hours