Parse mm/dd/year into 3 textboxes |mm||dd||year|

I have a database with dates stored in one field named Date in this format mm/dd/year.
I need my vb.net application to parse this date into 3 different textboxes when my program reads from this field:
mm = txtmonth.text
dd = txtday.text
year = txtyear.text

Thanks for any suggestions or code.
LVL 1
Matrix1000Asked:
Who is Participating?
 
eekjConnect With a Mentor Commented:
Dim split As String() = YourDateField.Split("/".ToCharArray())
txtmonth.Text = split(0)
txtday.Text = split(1)
txtyear.Text = split(2)
0
 
vinhthuy_nguyenConnect With a Mentor Commented:
Or you can use
yourDate.DayOfWeek = dd
yourDate.Month =mm
yourDate.Year = yyyy
0
All Courses

From novice to tech pro — start learning today.