If you want to go into the loop only if sVerifyStartDate!=sStartDate and sVerifyEndDate!=sEndDate. In that case your code should work. If its not work u can do it like
< Put your Code here>
mobijay: your code looks good, but (as always when comparing strings), take a close look at the strings you're comparing before suspecting silktest of being at fault - it's very easy to accidentally not notice little differences between two similar strings (e.g. in whitespace for example).