Answers for "flutter date -1 day"

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
0

flutter calander last date + 6 days

final DateTime picked = await showDatePicker(
  context: context,
  initialDate: DateTime.now(),
  firstDate: DateTime.now().subtract(Duration(days: 0)),
  lastDate: DateTime(2100),
);
Posted by: Guest on March-24-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language