É um pouco porque não fica clara a sua intensão a partir da leitura do
código, mas blz.
Mudar o dia do calendário e pegar a data correspondente é mais claro. ;-)
Mas relaxa...

É melhor abrir outra thread sim porque fica mais fácil depois pra achar uma
thread sobre um problema e seguir a discussão.

Abraço

Peter P. Lupo
MPS.BR Authorized Implementation Practitioner
Certified ScrumMaster
Sun Certified Java Associate
http://sites.google.com/site/pplupo - http://craftnicely.blogspot.com
+55 (021) 81742487


2009/12/19 Jefferson Bandeira <[email protected]>

> Bom, o jeito do André funcionou pra mim... é muito POG isso ? :P
> Aproveitando... ia perguntar uma coisa sobre e-mails, faço outra thread pra
> isso, certo?
>
> 2009/12/19 Peter P. Lupo <[email protected]>
>
> Você cria um calendar, seta a data que você quiser (ou incrementa uma data)
>> e pega uma instância de date a partir do calendar.
>>
>> Abraço
>>
>> Peter P. Lupo
>> MPS.BR Authorized Implementation Practitioner
>> Certified ScrumMaster
>> Sun Certified Java Associate
>> http://sites.google.com/site/pplupo - http://craftnicely.blogspot.com
>> +55 (021) 81742487
>>
>>
>>
>> 2009/12/19 Jefferson Bandeira <[email protected]>
>>
>>> Nossa =O
>>> Boa sacada.. vou tentar aqui e ver se funciona, Obrigado André ;3
>>>
>>> 2009/12/19 André Santos <[email protected]>
>>>
>>> Você pode usar o metodo setTime.
>>>>
>>>> http://java.sun.com/j2se/1.5.0/docs/api/java/sql/Date.html#setTime%28long%29
>>>>
>>>> Ficaria algo assim:
>>>>
>>>> Date data = new Date();
>>>> // adiciona 1000 milisegundos, vezes 60 (um minuto), vezes 60 (uma
>>>> hora), vezes 24 (1 dia)
>>>> data.setTime(data.getTime() + 24 * 60 * 60 * 1000);
>>>>
>>>> 2009/12/19 Jefferson Bandeira <[email protected]>:
>>>> > Olá minha gente :)
>>>> >
>>>> > Venho novamente requisitar a ajuda de vocês aqui, o problema dessa vez
>>>> é o
>>>> > seguinte :
>>>> > Como faço pra adicionar 1 dia a uma variavel Date?
>>>> > Ex, tenho uma data que indica o Dia 22/12/2009, quero que um metodo
>>>> consiga
>>>> > definir essa data pra 23/12/2009..
>>>> > Fiquei pensando aqui mas não saiu nada, se puderem ajudar agradeço
>>>> muito.
>>>> > :)
>>>> > --
>>>> > Jefferson Bandeira
>>>> >
>>>> > --
>>>> >
>>>> > You received this message because you are subscribed to the Google
>>>> Groups
>>>> > "Comp 2 - Geral" group.
>>>> > To post to this group, send email to [email protected].
>>>> > To unsubscribe from this group, send email to
>>>> > [email protected]<comp2-geral%[email protected]>
>>>> .
>>>> > For more options, visit this group at
>>>> > http://groups.google.com/group/comp2-geral?hl=en.
>>>> >
>>>>
>>>>
>>>>
>>>> --
>>>> André Santos Teixeira de Carvalho
>>>> Undergraduating in Computer Science DCC/UFRJ
>>>>
>>>> --
>>>>
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Comp 2 - Geral" group.
>>>> To post to this group, send email to [email protected].
>>>> To unsubscribe from this group, send email to
>>>> [email protected]<comp2-geral%[email protected]>
>>>> .
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/comp2-geral?hl=en.
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Jefferson Bandeira
>>> Suporte Técnico em informática
>>> (21) 9941 - 4545
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Comp 2 - Geral" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected]<comp2-geral%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/comp2-geral?hl=en.
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Comp 2 - Geral" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<comp2-geral%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/comp2-geral?hl=en.
>>
>
>
>
> --
> Jefferson Bandeira
> Suporte Técnico em informática
> (21) 9941 - 4545
>
> --
> You received this message because you are subscribed to the Google Groups
> "Comp 2 - Geral" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<comp2-geral%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/comp2-geral?hl=en.
>

--

You received this message because you are subscribed to the Google Groups "Comp 
2 - Geral" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/comp2-geral?hl=en.


Responder a