Salve a tutti, ho una piccola difficolta su un VBS :
la funzione Data
in pratica ho :
StrAnno = Trim(Year(Date()))
StrMese = Trim(Month(Date()))
StrGiorno = Trim(Day(Date()))
If StrMese < 10 Then
StrMese = Trim("0" & StrMese)
End If
If StrGiorno < 10 Then
StrGiorno = Trim("0" & StrGiorno )
End If
----------------------------
il problema è tutti i primi giorni del mese, che
in realtà la data e del giorno e del mese precedente...
in pratica oggi 01/02/2007....
mi deve dare 31/01/2007
se ci metto -1 su mi da 00/00/2007
Mi aiutate per favore...
|