Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

flutter datetime.now only time

import 'package:intl/intl.dart';

DateTime now = DateTime.now();
String formattedTime = DateFormat.Hms().format(now);
print(formattedTime);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #flutter #time
ADD COMMENT
Topic
Name
5+8 =