flutter how to convert 2020 year to timestamp code example
Example 1: dart timestamp
void main() {
print(new DateTime.now().millisecondsSinceEpoch);
}
Example 2: how to display current date time in flutter
DateTime now = new DateTime.now();
DateTime date = new DateTime(now.year, now.month, now.day);