22.03.2012, 11:47
compare each value in a decreasing order: year, month, day, hour, minute, second. when any comparison returns a difference, the date is (depends on how you check it, > or <) bigger.
are all date strings formatted the same way? yours looks like
so by using
and reordering the comparisons (years before months), it should work
are all date strings formatted the same way? yours looks like
pawn Код:
format(datestring,sizeof(datestring),"%dth %s %d, %d:%d,%d",day,monthname[month],year,hour,minute,second);
pawn Код:
sscanf(datestring,"d' 's[16]' 'd','d':'d'.'d",day,month,year,hour,minute,second)

