convert string to date

D

derrick

i have a text box with the following string 700131-0009.
i only want to use the first six digits before the dash(-
). Where 70 represents the year 1970, 01 means the month
(Jan) and 31 the day. i want that when the user types a
string like this (700131-0009), the first six digits are
converted to the persons date of birth such as 1970 Jan
31. Also another text box that converts 1970 Jan 31 to
the persons age.

txtbox1=700131-0009; txtbox2 = 1970 Jan 31; txtbox3= 33
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top