Answers for "datetime,now in text flutter"

1

flutter datetime.now only time

import 'package:intl/intl.dart';

DateTime now = DateTime.now();
String formattedTime = DateFormat.Hms().format(now);
print(formattedTime);
Posted by: Guest on June-03-2021
3

how to display current date time in flutter

DateTime dateToday = DateTime(DateTime.now().year, DateTime.now().month, DateTime.now().day) ;
Posted by: Guest on January-03-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language