intToDateStr function

String intToDateStr(
  1. int y,
  2. int m,
  3. int d
)

Implementation

String intToDateStr(int y, int m, int d) {
  String day1 =
      "${y.toString().padLeft(4, "0")}/${m.toString().padLeft(2, "0")}/${d.toString().padLeft(2, "0")}";

  return day1;
}