getDate static method

String getDate()

Implementation

static String getDate() {
  DateFormat dateFormat = DateFormat("yyyy-MM-dd");
  String currentDateTime = dateFormat.format(DateTime.now());
  return currentDateTime;
}