getDateFromTimeStamp static method

String getDateFromTimeStamp(
  1. int timestamp
)

Implementation

static String getDateFromTimeStamp(int timestamp) {
  final date = DateTime.fromMillisecondsSinceEpoch(timestamp * 1000);
  final dateFormat = DateFormat(DateTimeFormatConstants.ddMMyyyy);
  return dateFormat.format(date);
}