   // assumes that date/time was entered incorrectly.
   if (inputLength != 19)
   {
-    Serial.println();
-    Serial.println("Error: Incorrect date format!");
+    Serial.println("Error: Incorrect date format!\n");
     return;
   }
 

  // of date/time values.
  String input = String(buffer);

  Serial.println();
  Serial.println("Changing time to: " + input);

  int year = input.substring(0, 4).toInt();
  int month = input.substring(5, 7).toInt();


void doShowMenu()
{
  Serial.println("RTC Tester");
  Serial.println("----------");
  Serial.println("m: Show menu");
  Serial.println("r: Reads current date/time from RTC");
  Serial.println("f: Displays expected date/time format");
  Serial.println("s: Enters mode for setting date/time");
  Serial.println();
}

// Shows expected format for setting date/time.
void doShowDateTimeFormat()
{
  Serial.println("Date Time Format");
  Serial.println("----------------");
  Serial.println("General format: year-month-day hour:minute:second");
  Serial.println("Example format: 2014-01-12 01:05:23");
  Serial.println();
}

// Displays date/time in UNIX timestamp format.
