Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing format of numbers to date field

Status
Not open for further replies.

InspectorJoe

Technical User
Oct 10, 2001
13
US
I have been given an employee data extract of 2500+ records. Each employee's birthdate is stored in the "PRDOB" field. It's data type is set to Text. The data is YYYYMMDD with no separator characters. I would like to convert this data to a new Date field "DOBedit" which recognizes this text as a Date and displays as MM/DD/YYYY.
 
You might try something like:
Newdate = CVDate(Mid$(PRDOB, 5, 2) & "/" & Mid$(PRDOB, 7, 2) & "/" & Left(PRDOB, 4))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top