marycool1
Messages postés30Date d'inscriptionsamedi 26 février 2005StatutMembreDernière intervention24 juin 2007
-
7 juil. 2005 à 16:24
marycool1
Messages postés30Date d'inscriptionsamedi 26 février 2005StatutMembreDernière intervention24 juin 2007
-
7 juil. 2005 à 22:58
Salut!
Bon, j'ai un pti probleme la!
Bref, je veux soustraire 15 jours d'une date pour trouver une date!
Il s'agit donc de la soustraction des jours a une date!!!!!!
Ce n'est pas entre deux dates!!!!! si c'était le cas, on utilise Substrat!!!
Bon, voila, j'espere que j'était claire!!
Exp: 01/02/2005 - 15jours = 17/01/2005
Nb: c sous VB6
florantanplan
Messages postés76Date d'inscriptionmardi 11 février 2003StatutMembreDernière intervention 8 septembre 2006 7 juil. 2005 à 16:34
utilise Dateadd avec un 'number' négatif:
Returns a Variant (Date) containing a date to which a specified time interval has been added.
Syntax
DateAdd(interval, number, date)
The DateAdd function syntax has these [javascript:hhobj_4.Click() named arguments]:
Part,
Description,
----
interval,
Required. String expression that is the interval of time you want to add.,
----
number,
Required. Numeric expression that is the number of intervals you want to add. It can be positive (to get dates in the future) or negative (to get dates in the past).,
----
date,
Required. Variant (Date) or literal representing date to which the interval is added.