Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculating date from day of year
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Calculating date from day of year
Divers
Thread ID:
00673489
Message ID:
00673489
Vues:
48
I have the day of the year and need to calculate the date. What is the best way to do this?

I found this code to calculate the day of year - but nothing to reverse the day of year to a date.

lnDays = ldMyDate - gomonth(ldMyDate, - month(ldMyDate) + 1) + day(ldMyDate)

I'm sure I could set up a case statement for all the months and all the leap years. I was looking for a quickie!!

Thanks
Donna
Donna D. Osburn
www.software-plus.net
Time flies whether you are having fun or not!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform