getDateFromTimestamp function

String getDateFromTimestamp(
  1. int convertedTime,
  2. String format
)

Implementation

String getDateFromTimestamp(int convertedTime, String format) {
  var calendar = DateTime.fromMicrosecondsSinceEpoch(convertedTime);
  return DateFormat(format).format(calendar);
}