Can't figure out why this don't work. Have looked at examples and still having problem. Here's the code:
Getting error "Type Mismatch"

private Sub AddFileToListView(strFileName as string, FileDate as date)
Dim li as ListItem

set li = ListView1.ListItems.Add(, , strFileName)

With li
.SubItems(1) = strFileName
.SubItems(2) = FileDate
End With

End Sub



I get a file name listed for strFileName, however, I can't get the FileDate to be listed. Any suggestions?