Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculate the number of days since the beginning of year
Message
De
19/04/1998 21:03:13
Michel Lalonde
Laboratoire Médical Biron
Lachine, Québec, Canada
 
 
À
19/04/1998 20:55:10
Michel Lalonde
Laboratoire Médical Biron
Lachine, Québec, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00092480
Message ID:
00093283
Vues:
36
>>Your formula depends on SET DATE.
>>
>>Here is one that doesn't depend on SET DATE:
>>
>>ldDate - gomonth(ldDate, - month(ldDate) + 1) + day(ldDate)
>>
>>Vlad
>>
>>>? date()-ctod("01/01/"+right(str(year(date()),4),2))

Sorry for the last message

The "^" character force the YYYY.MM.DD format

? ldDate - ctod("^"+str(year(date()),4)+".01.01") + 1
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform