Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date Calculation
Message
From
28/03/2004 15:11:24
 
 
To
28/03/2004 01:54:44
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00890235
Message ID:
00890289
Views:
17
You must choose a reference date.
LOCAL nYear,nMonth,nDay
=DaysToYMD(650,@m.nYear,@m.nMonth,@m.nDay)
? m.nYear,m.nMonth,m.nDay

FUNCTION DaysToYMD(iDays,iYear,iMonth,iDay)
  * REFERENCE {^1900/01/01}
  PRIVATE dDays
  STORE {^1900/01/01}+m.iDays TO dDays
  STORE YEAR(m.dDays) -1900 TO iYear
  STORE MONTH(m.dDays)-1    TO iMonth
  STORE DAY(m.dDays)  -1    TO iDay
ENDFUNC
Previous
Reply
Map
View

Click here to load this message in the networking platform