Ciao.
DateI = [01/01/2003]
DateF = [06/03/2005]
(DataF-DataI)/86400 = 795
ok! with this I have the number of days, but how is possible to know that this number is 2 years, 2 months and 5 days?
Thanks a lot.
Nicola
Ciao.
DateI = [01/01/2003]
DateF = [06/03/2005]
(DataF-DataI)/86400 = 795
ok! with this I have the number of days, but how is possible to know that this number is 2 years, 2 months and 5 days?
Thanks a lot.
Nicola
Subject: Time Difference. Formula
Ciao,
puoi usare questo tipo di script, ovviamente ritorna approssimativo perché metti il valore del mese medio, cioè 30
anno=Int(795/365)
resto= (795 Mod 365)
mese=Int(resto/30)
giorno= resto Mod 30
Ciao
Subject: Grazie da scrivere in Inglese
Subject: Time Difference. Formula
Grazie per la tua risposta velocissima; ma guardando bene nel forum 4.5 ho trovato la soluzione.
difference:=@Today-DataAssunzione;
REM {difference is returned in seconds to get years we /60/60/24/365.25};
years:=((((difference/60)/60)/24)/365,25);
rYears:=@Integer(years);
months:=(years-rYears)*12;
rMonths:=@Integer(months);
days:=(months-rMonths)*30,4375;
rDays:=@Integer(days);
result:=@Text(rYears)+" - “+@Text(rMonths)+” - "+@Text(rDays);
@If (@IsError(years);“”;result)
Grazie ancora per la collaborazione.
Nicola