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:
1 |
DateTime.now().toUtc().millisecondsSinceEpoch |
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.