getCurrentDateOnly method

String getCurrentDateOnly()

Implementation

String getCurrentDateOnly() {
  DateTime now = DateTime.now();
  String formattedDate = DateFormat('yyyy-MM-dd').format(now);
  return formattedDate;
}