Dalle istruzioni che mi hai mandato:
codice:
DateDiff(interval, date1, date2 [,firstdayofweek[, firstweekofyear]])
Arguments
interval
Required. String expression that is the interval you want to use to calculate the differences between date1 and date2. See Settings section for values.
date1, date2
Required. Date expressions. Two dates you want to use in the calculation.
firstdayofweek
Optional. Constant that specifies the day of the week. If not specified, Sunday is assumed. See Settings section for values.
firstweekofyear
Optional. Constant that specifies the first week of the year. If not specified, the first week is assumed to be the week in which January 1 occurs. See Settings section for values.
per cui scrivo:
codice:
DiffADate = "Giorni:" & DateDiff("d", data_ricevuto, date())
in cui:
"d" = interval
data_ricevuto = data1
date() = date 2
firstweekofyear = no (opzionale)
firstweekofyear = no (opzionale)
mi restituisce per qualunche utente che chiede informazioni Giorni: 38206
il che non è vero... :master: