getNowDateTimeYyyyMmDdHhMmSs function

String getNowDateTimeYyyyMmDdHhMmSs()

Returns the current date and time in the format: yyyyMMddHHmmss.

Implementation

String getNowDateTimeYyyyMmDdHhMmSs() {
  final dT = DateTime.now();
  return '${dT.year}${dT.month}${dT.day}${dT.hour}${dT.minute}${dT.second}';
}