[Solved] Android – change Date format to – dd.mm.yyyy HH:mm [duplicate]


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("-", ".");

solved Android – change Date format to – dd.mm.yyyy HH:mm [duplicate]