Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A date from Week and Year?
Message
De
26/11/1999 09:04:14
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00295675
Message ID:
00295690
Vues:
20
Christian,

This should get you where you need to go
LOCAL lnWeek, lnYear, ldDate, lnCount, lnTest
lnWeek = 48
lnYear = 1999
ldDate = DATE(lnYear,1,1)
lnCount = 0
lnTest = 0
DO WHILE lnWeek > lnTest
	ldDate = ldDate + lnCount
	lnTest = WEEK(ldDate , 0, 1)
	lnCount = lnCount + 1
ENDDO
? ldDate - 1
>Hello,
>I have two values, the Week (like 48 for today) and the year (1999).
>How can I get the date of the first day of this week?
>So it should give me the date of last Sunday.
>I did not find any function for this.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform