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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

String to date conversion

Status
Not open for further replies.

pmscraiova

Programmer
Dec 8, 2001
86
RO
Hello,
It is possible to convert a string to a date type? I want to convert '20020825' to something like this: 25/08/2002. I need this convertion for insert a character type variable into a .dbf date field.
Thank a lot,
Eugen Fintina
 
CDate(str)
Or
CDate(mid(str,5,2) & "/" & right(str,2) & "/" & left(str,4))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top