Date to integers?
#4

Quote:
Originally Posted by pyrodave
Посмотреть сообщение
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"
Oh, thank you will try that thanks for the fast and easy answer ^^
Reply


Messages In This Thread
Date to integers? - by Ranama - 01.07.2012, 21:32
Re: Date to integers? - by Vince - 01.07.2012, 22:02
Re: Date to integers? - by pyrodave - 01.07.2012, 22:05
Re: Date to integers? - by Ranama - 01.07.2012, 22:17
Re: Date to integers? - by cessil - 02.07.2012, 03:39
Re: Date to integers? - by CaptainMactavish - 02.07.2012, 03:42
Re: Date to integers? - by AndreT - 02.07.2012, 05:28

Forum Jump:


Users browsing this thread: 1 Guest(s)