A
Armin Zingler
Hi,
I feel fooled.. In the immediate window, if I enter
? DateTime.Now.Kind
I get "Unspecified {0}". The result - I expected "local" - lead to some time
consuming deliberations. Today, I execute
MsgBox(DateTime.Now.Kind)
MsgBox(DateTime.Now.Kind.ToString)
as part of the source code, and I get "2" and "local" (where 2 = local, so
this is consistent).
Why does the immediate window lie? There, If I execute
?DateTime.Now.Kind.ToString
I even get the message "Run-time exception thrown :
System.ArgumentException - Cannot find the method on the object instance."
What? Did I overlook anything?
Armin
I feel fooled.. In the immediate window, if I enter
? DateTime.Now.Kind
I get "Unspecified {0}". The result - I expected "local" - lead to some time
consuming deliberations. Today, I execute
MsgBox(DateTime.Now.Kind)
MsgBox(DateTime.Now.Kind.ToString)
as part of the source code, and I get "2" and "local" (where 2 = local, so
this is consistent).
Why does the immediate window lie? There, If I execute
?DateTime.Now.Kind.ToString
I even get the message "Run-time exception thrown :
System.ArgumentException - Cannot find the method on the object instance."
What? Did I overlook anything?
Armin