Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculate the number of days since the beginning of year
Message
De
16/04/1998 10:42:25
 
 
À
16/04/1998 10:25:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00092480
Message ID:
00092523
Vues:
26
>>>In Edward's example, you might want to consider to use the 4 character year to be Y2K.
>>>? date()-ctod("01/01/"+str(year(date()))
>>
>>This is what I did. :)
>
>But this solution is wrong by one day! - my diary says today is the 106th day of the year - not the 105th :-)

Interesting remark, thanks, I adjusted the function.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform