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

VPF6: Character date to string 1

Status
Not open for further replies.

maggielady

Technical User
Jan 3, 2003
60
0
0
US
I have a table with a character date field in this format: yyyymmdd, except that some of the dates are just mmdd. How do I get all of these dates into a string format that needs to go into another program that only excepts dates in this format yyyymmdd(character field 8 spaces)? Any help would be greatly appreciated!!
 
theyear = '2004' && default year

REPLACE ALL datefield with theyear + datefield FOR ;
LEN(ALLTRIM(datefield)) = 4


Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top