P
Phillip Vong
VS2005 in VB.NET
I have 2 simple textboxes (Textbox1, Textbox2) and they both have dates.
Textbox1=12/31/2006
Textbox2=12/15/2006
I need to convert these two textboxes that are in String format into Date
format and I'm not sure how. I tried this and I thought it would work, but
I get the
Conversion from string "TextBox1" to type 'Date' is not valid.
-------------------------
Dim FromDate, ToDate As Date
FromDate = CType("TextBox1", Date)
ToDate = CType("Textbox2", Date)
Thanks and any help is greatly appreciated.
I have 2 simple textboxes (Textbox1, Textbox2) and they both have dates.
Textbox1=12/31/2006
Textbox2=12/15/2006
I need to convert these two textboxes that are in String format into Date
format and I'm not sure how. I tried this and I thought it would work, but
I get the
Conversion from string "TextBox1" to type 'Date' is not valid.
-------------------------
Dim FromDate, ToDate As Date
FromDate = CType("TextBox1", Date)
ToDate = CType("Textbox2", Date)
Thanks and any help is greatly appreciated.