J
Juan Schwartz
I am using the following to convert a string to a date.
[string] = "10/14/2006"
DateSerial(Right([string],4),Mid([string],4,2),Left([string],2))
The problem is it's returning 2/10/2007 which doesn't make sense. If I
echo out the substrings I'm using in the date serial command, they are
correct and if I put those numbers in the DateSerial function, I get
the correct date. Am I missing something here?
Jimmy
[string] = "10/14/2006"
DateSerial(Right([string],4),Mid([string],4,2),Left([string],2))
The problem is it's returning 2/10/2007 which doesn't make sense. If I
echo out the substrings I'm using in the date serial command, they are
correct and if I put those numbers in the DateSerial function, I get
the correct date. Am I missing something here?
Jimmy