[Solved] Convert date time to C# timetick in Dart (Flutter) [closed]
I just did it for the date. You can copy the implementation made in C# in dart. DateTime.DateToTicks(…) void main() { final dateTime = DateTime.now(); print(DateTimeUtils.dateToTicks( dateTime.year, dateTime.month, dateTime.day, )); } class DateTimeUtils { static const int TicksPerMillisecond = 10000; static const int TicksPerSecond = TicksPerMillisecond * 1000; static const int TicksPerMinute = TicksPerSecond * … Read more