DateFormat in Flutter
import 'package:intl/intl.dart';
DateTime now = DateTime.now();
String formattedDate = DateFormat('yyyy-MM-dd – kk:mm').format(now);
DateFormat in Flutter
import 'package:intl/intl.dart';
DateTime now = DateTime.now();
String formattedDate = DateFormat('yyyy-MM-dd – kk:mm').format(now);
flutter date input field
dependencies: // in pubspec.yaml
date_field: ^0.1.2
DateTime selectedData;
return DateField( // in a build
onDateSelected: (DateTime value) {
setState(() { selectedData = value; });
},
selectedDate: selectedData,
);
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us