flutter show datetime code example
Example 1: how to display current date time in flutter
DateTime dateToday = DateTime(DateTime.now().year, DateTime.now().month, DateTime.now().day) ;
Example 2: how to show date only in flutter
import 'package:intl/intl.dart';
String now = DateFormat("yyyy-MM-dd").format(DateTime.now());