Answers for "dart datetime as day month year"

24

flutter convert datetime in day of month

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
2

add years to date dart

DateTime now = new DateTime.now();
DateTime tenYearsLater = DateTime(now.year + 10, now.month, now.day);
Posted by: Guest on January-19-2021

Code answers related to "dart datetime as day month year"

Code answers related to "Dart"

Browse Popular Code Answers by Language