timestampToString method

String timestampToString(
  1. 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;
}