flutter show date and time code example
Example 1: how to show date only in flutter
import 'package:intl/intl.dart';
String now = DateFormat("yyyy-MM-dd").format(DateTime.now());
Example 2: how to show date only in flutter
dependencies:
flutter:
sdk: flutter
intl: ^0.16.1