Data

3 respostas
D

Olá

Como posso pegar a data do systema no fromato dd/mm/aaaa?



Obrigado!

3 Respostas

R
Calendar cal = Calendar.getInstance();





String data = Integer.toString(cal.get(Calendar.DATE))+"/"+                       Integer.toString(cal.get(Calendar.MONTH))+"/20"+Integer.toString(cal.get(Calendar.YEAR));





Isso funciona, mas precisa de alguns pequenos ajustes. Ai é com você!


___________________________________________________________ragNT
F

Olá,



dá uma olhada neste tutorial:

<A HREF="http://www.guj.com.br/servlet/guj?PARSE=true&MAMUTE_ACTION=br.com.guj.action.ListTutorial&MAMUTE_TEMPLATE=ShowTutorial&LIST_TUTORIAL=single&TutorialId=8&PAGE=1" TARGET="_blank">Utilizando e formatando datas

Z
Olá,







dá uma olhada neste tutorial:




<!-- BBCode Start -->

<a href="http://www.guj.com.br/servlet/guj?PARSE=true&MAMUTE_ACTION=br.com.guj.action.ListTutorial&MAMUTE_TEMPLATE=ShowTutorial&LIST_TUTORIAL=single&TutorialId=8&PAGE=1" target="_blank">

Utilizando e formatando datas

</a>

<!-- BBCode End -->
Criado 14 de abril de 2003
Ultima resposta 12 de dez. de 2008
Respostas 3
Participantes 4