I have a date in String an I using this:
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy HH:mm");
dataUltima = sdf.format(sdf);
to format the date. But this method return the actual date of system. How can I only format the date without change the date.
Obs. I'm getting this date from a server, it come to me yyy-dd-MM and I want it dd/MM/yyyy
I am not sure what is your problem.
Try it. Maybe help.
Ty following:
Source: Convert date string from one format to another format using SimpleDateFormat
Hope this helps.
Try this code:
Try this: