I want to show only its time without date, so that my chart can be displayed perfectly. The problem is DateFormat that I used is not properly like below:
with the code like this:
xValueMapper: (GraphicLoadUnload data, _) => data.startDate.toString()
while I want the date only shows time like this:
>Solution :
import 'package:intl/intl.dart';
DateTime now = DateTime.now(); //Set your datetime value
String formattedDate = DateFormat('kk:mm').format(now);

