VBScript Variant Question
-
A puzzle came up today which I can't really explain why, and was hoping someone would have a better idea than me. In VBScript if you create a string which represents a date and then call vartype on that variable, it returns as a subtype of date. I think it should be a string, and wondered why it would return as a date. dim mydate : mydate = "2005-01-01 12:20:05" response.write vartype( mydate )
-
A puzzle came up today which I can't really explain why, and was hoping someone would have a better idea than me. In VBScript if you create a string which represents a date and then call vartype on that variable, it returns as a subtype of date. I think it should be a string, and wondered why it would return as a date. dim mydate : mydate = "2005-01-01 12:20:05" response.write vartype( mydate )
-
That will teach me to actually test things out. Thanks anyway, I was sure it was going to be a string.