Answers for "how to subtract dates in flutter"

0

how to subtract dates in flutter

//the birthday's date
 final birthday = DateTime(1967, 10, 12);
 final date2 = DateTime.now();
 final difference = date2.difference(birthday).inDays;
Posted by: Guest on December-26-2020

Code answers related to "Dart"

Browse Popular Code Answers by Language