Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MONTH(DATE())
Message
From
07/09/1997 03:40:46
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00048509
Message ID:
00048869
Views:
30
> The expression that will get all records for the current month would be; > > MONTH(Date_field) = MONTH(DATE()) I've done my two hours debugging for a thing like that. It includes all Septemb ers regardless of the year, and in the testing phase you usually have only one year 's data, or less. I prefer setting two vars like this, just to make sure:
        StartDate_ld=date()-day(date())+1
        EndDate_ld=GoMonth(StartDate_ld,1)-1
        select .... where date_field between StartDate_ld and EndDate_ld
.Signature { margin-top: 12px; color: #666666; } .Signature a { color: #666666; }

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform