char monthNames[] = {"", "Jan", "Feb", "Mar", "Apr"}; the compiler says:
should have been:
char *monthNames[] = {"", "Jan", "Feb", "Mar", "Apr"}; the compiler says:
and for: SD.mkdir((const char )dirName); error: invalid conversion from 'const char' to 'char*'
Then, the cast is not necessary.
SD.mkdir(dirName);