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[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers