Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to change a single character to a year?
Message
From
17/11/2002 21:21:25
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to change a single character to a year?
Miscellaneous
Thread ID:
00723697
Message ID:
00723697
Views:
49
Hi All:

I extract the data from a sdf file and populate a table and then process as follows:
mDayOfService = SUBSTR(ConvertThis.LineItem,53,2)
mMonthOfService = SUBSTR(ConvertThis.LineItem,56,2)
mYearOfService = SUBSTR(ConvertThis.LineItem,59,1) &&the document only provides 1 digit for the year
How do I take the above information and convert it to read, say MM/DD/YYYY? Specially when only 1 digit of the year is available to me from teh source document.

Thank you for your advise.
- Ravi

True greatness consists in being great in little things.
- Charles Simmons
Next
Reply
Map
View

Click here to load this message in the networking platform