   String month = String(datetime.month(), DEC);
   String day  = String(datetime.day(),  DEC);
   String hour  = String(datetime.hour(),  DEC);
-  String minute = String(datetime.minute(), DEC);
-  String second = String(datetime.second(), DEC);
+  String minute = makeDigit(datetime.minute());
+  String second = makeDigit(datetime.second());
   return (month + "/" + day + " " + hour + ":" + minute + ":" + second);
+}
+
+String makeDigit(int i)
+{
+  if (i < 10)
+  { return ("0" + String(i, DEC)); }
+  else
+  { return String(i, DEC); }
 }
 
 /*void moveMotor(int motorNum)

{
  clearDisplay();
  delay(2);
  setDisplayValues(String(pelletCount[0] + "\t" + pelletCount[1]));
}

void clearDisplay()

  //SD card init stuff
  Wire.begin();
  RTC.begin();
  delay(250);

  //RTC.adjust(DateTime(__DATE__, __TIME__));
  if (!RTC.isrunning()) {
    Serial.println(F("RTC is NOT running!"));
    RTC.adjust(DateTime(F(__DATE__), F(__TIME__)));
  }
