formattedDate property

String formattedDate
getter/setter pair

Implementation

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