char * reformatDate(char * date){ int len = strlen(date); int i,j=0; char* str = (char*)calloc(len*2,sizeof(char)); char* arr[] = {"Jan","01","Feb","02","Mar","03","Apr","04","May","05","Jun","06","Jul","07","Aug","08","Sep","09","Oct","10","Nov","11","Dec","12"}; for (i=len-1; i>=0; i--) { char* buff = (char*)calloc(len,sizeof(char)); if (i && date[i-1] == ' ') { if (isdigit(date[i])) //对应年份 { strcat(strcat(str,&date[i]),"-"); date[i-1] = '