Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dates
Message
De
07/10/2008 10:32:25
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
07/10/2008 07:32:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Dates
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01353207
Message ID:
01353303
Vues:
16
>hi all,
>i have this data at mytable when i run the select statment i get empty select,
>i need to brows all contracts need one month to finished or it allready finshid
>
>
>edate have dates as..
>sdate=02/04/2007 edate=02/04/2008
>sdate=07/09/2007 edate=07/09/2008
>sdate=01/01/2007 edate=01/01/2008
>sdate=03/03/2007 edate=02/03/2008
>
>SELECT * FROM mstr WHERE between (DATE(),GOMONTH(edate,-1),edate)
>
>thanks

In this example:
1. What is date()? (Make sure your computer clock has the correct date!)
2. What is the date format? You can get this with ? set("date")
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform