How to transform 01012010 style dates to normal?
#4

Quote:
Originally Posted by © ŦĥЗ ǺĽẽẌṖŎịŚỘń
you need this?

Код:
stock GetDMY(&day, &month, &year)
{
	new d, m, y;
	getdate(y, m, d);
	day = d;
	month = m;
	year = y;
	return 1;
}
lmao

pawn Код:
//well anyways here is it, not tested

//lets say you have stored the value in a string called "Date"
new Date[2],Month[2],Year[2];
strmid(Day, Date, 0, 1);
strmid(Day, Month, 2, 3);
strmid(Day, Year, 4, 7);
Reply


Messages In This Thread
How to transform 01012010 style dates to normal? - by un4seen - 18.04.2010, 21:47
Re: How to transform 01012010 style dates to normal? - by .(Infinite Imagination). - 18.04.2010, 23:59
Re: How to transform 01012010 style dates to normal? - by Kyosaur - 19.04.2010, 00:20
Re: How to transform 01012010 style dates to normal? - by cloud9 - 19.04.2010, 01:30
Re: How to transform 01012010 style dates to normal? - by un4seen - 22.04.2010, 16:59
Re: How to transform 01012010 style dates to normal? - by ziomal432 - 22.04.2010, 17:21

Forum Jump:


Users browsing this thread: 1 Guest(s)