T
TS
I belive for primitive types, it is must efficient to use convert.toXXX()
instead of the ctype.
How does the DirectCast differ?
How does parse differ?
Say I have the following code to assign the value from a textbox to a
datetime variable:
dim x as datetime = txtDate.text
I'm wondering whats the best way to do this? I would normally do a
convert.ToDateTime(txtDate.text), but I also know there is a
date.parse(txtDate.text), and I"m not sure which is better.
thank You
instead of the ctype.
How does the DirectCast differ?
How does parse differ?
Say I have the following code to assign the value from a textbox to a
datetime variable:
dim x as datetime = txtDate.text
I'm wondering whats the best way to do this? I would normally do a
convert.ToDateTime(txtDate.text), but I also know there is a
date.parse(txtDate.text), and I"m not sure which is better.
thank You