Im trying to do a console a program and i need to get the day, and month and, year into diferent int's, but i cant get any of them, im trying to at least get the month, but i cant
this is what i do
note: mes = month in spanishCode:int mes; time_t now; struct tm *tm_now; char buff[20]; now = time ( NULL ); tm_now = localtime ( &now ); strftime(buff, sizeof buff, "%m", tm_now ); mes=atoi(buff);
everytime i try to use mes i get an error