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

YYYYMMDD String to Date DD/MM/YYYY

Status
Not open for further replies.
Nov 29, 2002
64
US
Hello there, how can I convert a text string like "YYYYMMDD" into a date format "DD/MM/YYYY"?

thanks,
alfredo
 
if it's a static length like that :
dateval = "YYYYMMDD"
vardate = mid(dateval,5,2) & "/" & mid(dateval,7,2) & "/" Mid(dateval,1,4)
vardate = cdate(vardate)

[thumbsup2]DreX
aKa - Robert
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top