Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Please tell me how to assign a value to a date variable
Message
De
29/11/2005 15:24:32
 
 
À
29/11/2005 13:55:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Database:
Visual FoxPro
Divers
Thread ID:
01072929
Message ID:
01072988
Vues:
27
>Hi,
>>Please tell me how to assign to a variable xMyDate the value January 1st of the current year.
>
>Sure there are more elegant ways but:
>xMyDate = CTOD("1/1"+STR(YEAR(DATE())))
>

But this code depends on your SET DATE setting, while the DATE() function is independent of it.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform