Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Julian to Gregorian
Message
From
01/06/2005 09:50:12
 
 
To
01/06/2005 09:35:33
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01018950
Message ID:
01018953
Views:
28
>I have a numeric field that is actually a date. The format is YYYYDDD (ie,2000316). I want to convert this to MMDDYYYY format. What is the code for doing this?
ln_yyyyddd = 2000316
ld_year = INT(ln_yyyyddd / 1000)
ld_days = MOD(ln_yyyyddd, 1000)

? DATE(ld_year, 1, 1) + ld_days - 1
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Previous
Reply
Map
View

Click here to load this message in the networking platform