By using this :
Text(new DateTime.fromMillisecondsSinceEpoch(values[index][\"start_time\"]*1000).toString(),
I am getting the ty
Use intl package:
import 'package:intl/intl.dart';
And then:
var inputFormat = DateFormat('dd/MM/yyyy HH:mm');
var inputDate = inputFormat.parse('31/12/2000 23:59'); // <-- Incoming date
var outputFormat = DateFormat('MM/dd/yyyy hh:mm a');
var outputDate = outputFormat.format(inputDate); // <-- Desired date
print(outputDate); // 12/31/2000 11:59 PM