Converts milliseconds since epoch to the day of the month.
static int toDay(int timeMills) { return DateTime.fromMillisecondsSinceEpoch(timeMills).day; }