Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I get the day?
Message
De
30/05/2014 07:59:02
 
 
À
29/05/2014 17:18:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows NT
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01600946
Message ID:
01600984
Vues:
79
?CDOW(DATE()) && Gives current day
?CDOW(DATE(YEAR(DATE()), MONTH(DATE()), lnDay) && Gives day in current month

An alternative using Julian dates:

?CDOW(CTOD(SYS(10, VAL(SYS(11, DATE(2014, 1, 1)))))) && Gives Wednesday, 1/1/2014
lnDay = 20
?CDOW(CTOD(SYS(10, VAL(SYS(11, DATE(2014, 1, 1))) + lnDay))) && Gives Tuesday, 20 days after 1/1/2014
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform