| To: | REALbasic Italian NUG <realbasic-nug.it@lists.realsoftware.com> |
|---|---|
| Subject: | date e calcoli |
| From: | Gualeni Giovanni <ggualeni@tiscali.it> |
| Date: | Wed, 22 Jul 2009 10:12:07 +0200 |
| Authentication-results: | mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug.it-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug.it-bounces@lists.realsoftware.com |
| Delivered-to: | listarchive@realsoftware.com |
| Reply-to: | REALbasic NUG Italian <realbasic-nug.it@lists.realsoftware.com> |
| Sender: | realbasic-nug.it-bounces@lists.realsoftware.com |
Ciao,
quesito della Susi:
Dim myDate,firstDate,lastDate As Date
Dim b As Boolean
myDate = New Date
b=ParseDate("15/08/2009",myDate)
firstDate = New Date
lastDate = New Date
If myDate <> Nil Then
firstDate = myDate
lastDate = myDate
End If
firstDate.Day = 1
lastDate.Day = 1
lastDate.Month = lastDate.Month+1
lastDate.Day = lastDate.Day-1
Il problema e' che firstDate dovrebbe risultare 01/08/2009 invece
risulta 31/08/2009!
Mi rendo conto che l'eta' che avanza non aiuta ma dove sta l'errore? p.s.: se invece lascio myDate = Nil ... funziona (sic!) Giovanni |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: metodo Hierarchical > listBox, ivanomonti\@libero\.it |
|---|---|
| Next by Date: | Re: date e calcoli, Massimo Valle |
| Previous by Thread: | R: Salve a tutti!, luigi.giammarco@libero.it |
| Next by Thread: | Re: date e calcoli, Massimo Valle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |