getCurrentDate static method

String getCurrentDate({
  1. String format = Format.fyyyyMMdd,
})

get current date with format

Implementation

static String getCurrentDate({String format = Format.fyyyyMMdd}) {
  return DateFormat(format).format(DateTime.now());
}