flutter datetime add year

84

var date = DateTime.now();
var newDate = DateTime(date.year, date.month - 1, date.day);

Comments

Submit
0 Comments