Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #subtract #dates #flutter
ADD COMMENT
Topic
Name
1+7 =