Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

get only time from datetime in dart

import 'package:intl/intl.dart';

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