I am trying to compare two variables in a For Each Loop. One is a ‘String’, the other is a 'DataTime."
I’ve tried converting the string to the DateTime type using:
But keep on getting the error “Options Strict On disallows implicit conversion from ‘Object’ to ‘String’”
What should I do to compare these two variables?