How to get last midnight in Dart?

Posted by Editorial Staff | Updated on

Want to get last midnight in Dart? This should do the same

You can use this way to get different times of this day

Depending on what you want can absolute values be more safe because adding/subtracting Duration can result in surprises because of leap years and daylight saving time.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers