01.07.2012, 22:05
To split the dates as you have up, you could use sscanf:
pawn Код:
new year,month,day;
sscanf("2012-02-23","p<->ddd",year,month,day);
printf("Year: %d Month: %d Day: %d",year,month,day);
//Prints "Year: 2012 Month: 2 Day: 23"