Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding month and days
Message
De
23/08/2006 06:30:22
 
 
À
22/08/2006 23:30:44
Chandan Chakraborty
Bangiya Gramin Vikash Bank
Raiganj, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Divers
Thread ID:
01147383
Message ID:
01147818
Vues:
25
This message has been marked as the solution to the initial question of the thread.
>Thanks Rich! It has helped me. Now I have another query. How I can replace the results in a dbf? I failed to do so. The variable for days is somehow difficult to me.
>

CAST() is a VFP9's function.
SET DATE DMY
date1=DATE(2005,12,12)

date2=DATE(2006,6,21)

mdiff =((YEAR(date2)-YEAR(date1))*12+MONTH(date2)-MONTH(date1)) % 12
dDiff = date2 - GOMONTH(date1,mdiff)
CLEAR

? mdiff,dDiff
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform