getCurrentDateTime static method

String getCurrentDateTime({
  1. String format = DateTimes.fyyyyMMdd,
})

get current date with format

Implementation

static String getCurrentDateTime({String format = DateTimes.fyyyyMMdd}) {
  return DateFormat(format).format(DateTime.now());
}