dart date add year

68

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

Comments

Submit
0 Comments