I have a Date object like this:
Fri Jan 29 13:22:57 GMT+01:00 2016
And I need it to look like this:
29.01.2016 13:22
How can I do that ?
I have a Date object like this:
Fri Jan 29 13:22:57 GMT+01:00 2016
And I need it to look like this:
29.01.2016 13:22
How can I do that ?
At First Post Your Code .
Please follow How do you format date and time in Android
Code for SimpleDateFormat . Just check the logic .
SimpleDateFormat timeStampFormat = new SimpleDateFormat("dd-yyyy-MM HHmm");
Date GetDate = new Date();
String DateStr = timeStampFormat.format(GetDate);
Now replace -
as .
DateStr = DateStr.replace("-", ".");