getdate help.
#1

I'm making a subscription based system for housing and I need to read the date from a string. Anyone know how to do this?


I need to read from a string similar to this. 07/12/2014.

How do I get the Day, Month, and Year from this string?
Reply
#2

"strmid" can do that for you, or even sscanf.

pawn Код:
new Day, Month, Year;
sscanf("07/12/2014", "p</>iii", Day, Month, Year);
This should work.
Reply
#3

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)