getDateTime static method

String getDateTime()

Implementation

static String getDateTime() {
  DateFormat dateFormat = DateFormat("yyyy-MM-dd HH:mm:ss");
  String currentDateTime = dateFormat.format(DateTime.now());
  return currentDateTime;
}