Get current timestamp in flutter or dart

131

var timestamp = DateTime.now().millisecondsSinceEpoch.toString()
print(timestamp);

Comments

Submit
0 Comments