Created
March 25, 2020 19:01
-
-
Save orestesgaolin/0e55ac2280d755efc991c4ec3bb40b42 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
DateTime currentDate = DateTime.now(); | |
DateTime date = currentDate.add(Duration(days: -13)); | |
print(date); | |
DateTime date1 = currentDate.add(Duration(days: -14)); | |
print(date1); | |
print(date.difference(date1)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment