Answers for "format date to date in flutter"

27

flutter datetime format

import 'package:intl/intl.dart';

DateTime now = DateTime.now();
String formattedDate = DateFormat('yyyy-MM-dd – kk:mm').format(now);
Posted by: Guest on September-10-2020
0

Flutter String to dateTime format

DateTime tempDate = new DateFormat("yyyy-MM-dd hh:mm:ss").parse(savedDateString);
Posted by: Guest on January-11-2022

Code answers related to "Dart"

Browse Popular Code Answers by Language