timestampToString method
- Timestamp timestamp
Converts timestamp to string.
Implementation
String timestampToString(Timestamp timestamp) {
DateTime dateTime = timestamp.toDate();
String formattedDate = DateFormat('dd.MM.yyyy HH:mm').format(dateTime);
return formattedDate;
}