Skip to content

Instantly share code, notes, and snippets.

@orestesgaolin
Created March 25, 2020 19:01
Show Gist options
  • Save orestesgaolin/0e55ac2280d755efc991c4ec3bb40b42 to your computer and use it in GitHub Desktop.
Save orestesgaolin/0e55ac2280d755efc991c4ec3bb40b42 to your computer and use it in GitHub Desktop.
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