Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
First day of six month ago
Message
From
11/10/2007 11:14:44
 
 
To
11/10/2007 02:34:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01257910
Message ID:
01260310
Views:
14
>>>
>>>ldDate = DATE()
>>>? GOMONTH(ldDate - DAY(ldDate) + 1, -6)
>>>
>>>
>>>>Easiest and simple function.. for first day of six months ago.. is?
>>
>>humm... much better than Silvain's.. and also clean.. I'll change the choise of star...
>>
>>Sorry and also thanks Sylvain
>>
>>what about
? GOMONTH(DATE() - DAY(DATE()) + 1, -6)
>
>If you call it at 11:59:59.999 you can get a wrong result.

wow!! ROFL...

well, let's estimate that math possibility, hummm lets see:

numbers users X numbers of mil. of seconds in a day X numbers of routines for a same user it will be same as 1 to 'oops, may my calculator broke???'... well, here we go: a PI number..

So, what about?
DO WHILE time()="11:59:59.999"
   ? "Waiting"
enddo
? GOMONTH(DATE() - DAY(DATE()) + 1, -6)
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Previous
Reply
Map
View

Click here to load this message in the networking platform