Created with <3 with dartpad.dev.
Created
October 12, 2023 10:41
-
-
Save matifdeveloper/9acc742e766f02c7c65e105ed26a560d to your computer and use it in GitHub Desktop.
Yesterday Date
This file contains 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() { | |
final dateTime = DateTime.now().subtract(const Duration(days:1)); | |
print(dateTime); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment