In php, you can convert today's date into interger by using the function var_today = date() which gives you the result of seconds from 1970 to today. What would be the function in VFP in order to obtain the same result?
You can look into your VFP Help file for how to use SYS(11)
It will give you the Julian Date for the desired date.
Then, if you need SECONDS, you can convert the Julian Date.
As this is number of seconds, you use [tt]DATETIME()-DATETIME(1970,1,1,0,0,0)[/tt] for the current Unix time and, of course, just process any DateTime from data, inputs, etc. by subtractnig the 1st January 1970 midnight from it to get the seconds since then.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.