date conversion and option strict on
Visual Basic
3
Posts
3
Posters
0
Views
1
Watching
-
With Option Strict On...How do I get a date from a textbox to a variable defined as date?
-
With Option Strict On...How do I get a date from a textbox to a variable defined as date?
Generaly when the option stict on is set you can convert value's on two way's 1- use the ctype like Dim MyDate as Date MyDate = cType(me.textBox1.text, Date) 2- Using the Cast method. I must check some things how that is working I never needed yet. I respond on this later.