Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Work day count between two dates
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00689838
Message ID:
00690368
Vues:
17
Check this out, hope you find it useful.
*************************
PROCEDURE calcwrkdays
PARAMETERS tdStart,tdEnd
LOCAL lndays,ldcurDate
lndays=0
ldcurDate=tdstart
DO WHILE ldcurDate<tdend
  IF DOW(ldcurDate)<6
   lndays=lndays+1
  ENDIF
  ldcurDate=ldcurDate+1
ENDDO

=MESSAGEBOX("There are "+TRANSFORM(lndays)+" working days in this period",64,"Tools")

*************
**Can be used as 'DO calcwrkdays WITH {^2001/01/31},{^2002/01/31}'
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform