Код: Выделить всё
public Map toMap() {
Map result = new HashMap();
if ( date!= null && !date.isEmpty()) {
result.put(AppConstantClass.EVENT_DATE, date);
}
if (time != null && !time.isEmpty()) {
result.put(AppConstantClass.EVENT_TIME, time);
}
if (userId != null && !userId.isEmpty()) {
result.put(AppConstantClass.EVENT_USED_ID, userId);
}
result.put("timestamp", ServerValue.TIMESTAMP);
return result;
}
как мне отформатировать "result.put("timestamp", ServerValue.TIMESTAMP);" в "ДД-ММ-ГГГГ ЧЧ:ММ:СС".
Заранее спасибо
Подробнее здесь: https://stackoverflow.com/questions/790 ... in-android
Мобильная версия