I
Size: a a a
I
LK
I
LK
I
LK
"yyyy-MM-dd"и есть
"dd MM yyyy"
I
I
LK
I
СР
LK
SimpleDateFormat oldDateFormat = new SimpleDateFormat("yyyy-MM-dd", Locale.getDefault());
SimpleDateFormat newDateFormat = new SimpleDateFormat("dd MM yyyy", Locale.getDefault());
// if(oldDateString != )
Date date = null;
try {
if(oldDateString == null){
// String result = "--";
}else if(oldDateString.equals(oldDateFormat)){
date = oldDateFormat.parse(oldDateString);
String result = newDateFormat.format(date);
Log.d(TAG, result + " ");
}
запускаю дебаг почему то не доходитI
SimpleDateFormat oldDateFormat = new SimpleDateFormat("yyyy-MM-dd", Locale.getDefault());
SimpleDateFormat newDateFormat = new SimpleDateFormat("dd MM yyyy", Locale.getDefault());
// if(oldDateString != )
Date date = null;
try {
if(oldDateString == null){
// String result = "--";
}else if(oldDateString.equals(oldDateFormat)){
date = oldDateFormat.parse(oldDateString);
String result = newDateFormat.format(date);
Log.d(TAG, result + " ");
}
запускаю дебаг почему то не доходит🎄
LK

I

oldDateFormat.toPattern().equals(newDateFormat.toPattern())
PL
I


I
LK