Skip to content

Instantly share code, notes, and snippets.

@albertms10
Created March 11, 2022 12:12
Show Gist options
  • Save albertms10/d75b00b8e18b1f552e926515c107dcc1 to your computer and use it in GitHub Desktop.
Save albertms10/d75b00b8e18b1f552e926515c107dcc1 to your computer and use it in GitHub Desktop.
Dart 0-day DateTime
void main() {
print(DateTime(2000, 1, 0)); // previous day
print(DateTime(2000, 1, 1)); // proper day
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment