Answers for "flutter textformfield for date inpurformatter in fluter"

27

DateFormat in Flutter

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
1

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,  
);
Posted by: Guest on May-26-2021

Code answers related to "flutter textformfield for date inpurformatter in fluter"

Code answers related to "Dart"

Browse Popular Code Answers by Language