How to convert From DateTime to unix timestamp in Flutter?

Posted by Andre Scott | Updated on | Flutter

Want to convert From DateTime to unix timestamp in Flutter? Darts DateTime has a property millisecondsSinceEpoch which should be what unix timestamp is as well.

Example:


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