Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27184

How to convert a date in a textbox to a date in vb 2010

$
0
0
This can't be this hard but here's my problem

I have a date in a TextBox in this format "03081960".

I need to convert the date in the textbox into a date format to use in a DateDiff instruction.
The textbox is named "TextBox16"

What is the code for converting the date in the textbox??

Dim Mydate as date = ????????????????????
Dim TimeDif As Integer = DateDiff(DateInterval.Year, Now, mydate)

Viewing all articles
Browse latest Browse all 27184

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>