Answers for "flutter datetime add day"

17

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
3

flutter datetime add hours

var today = new DateTime.now();
var fiftyDaysFromNow = today.add(new Duration(hours: 1));
Posted by: Guest on February-27-2020

Browse Popular Code Answers by Language