Quote:
I would think this would return a 2, but I keep getting zero


Maybe you changed the date at some point, but the way you have the script right now, I would expect to get -1 since neither of these are in the array.