Where would I find information about how to turn this into a string so I don't have to have so many lines of code
DateTime now = rtc.now();
sdFile.print(now.month(), DEC);
sdFile.print('/');
sdFile.print(now.day(), DEC);
sdFile.print('/');
sdFile.print(now.year(), DEC);
sdFile.print(" ");
sdFile.print(now.hour(), DEC);
sdFile.print(':');
sdFile.print(now.minute(), DEC);
sdFile.print(':');
sdFile.print(now.second(), DEC);
sdFile.println();
delay(10000);
sdFile.close(); // close the file