You want to take a look at the javadoc for SimpleDateFormat if your making up your own format. With plain DateFormat you would use it like this.
String formatedDate = DateFormat.getDateInstance([optional argument such as DateFormat.SHORT]).format([your date]); http://java.sun.com/javase/6/docs/api/java/text/DateFormat.html http://java.sun.com/javase/6/docs/api/java/text/SimpleDateFormat.html On Jan 19, 6:29 am, JJ <[email protected]> wrote: > Hi all. > > I have a problem using *DateFormat.format *because i think the last class of > DateFormat have been changed in the last SDK. > > Now, i dont think how can i do the format of date and if the correct class > to do it is java.sql.Date or java.util.Date... > > The code is: > > String fecha = DateFormat.format("dd/MM/yyyy kk:mm",new > Date(rFecha)).toString(); > > With this, i want to have something like this: 05/01/2009 10:12 for > example. > > This code is from this spanish > tutorial:http://groups.google.es/group/desarrolladores-android/web/registro-de... > > Thanks for the help, ;-) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" 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/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

