#1

Hii, i make a stock for getdate, but i want the month show as text not number ..
if i use the stock, that just show me the month name, not with the year and day

+REP

pawn Код:
stock GetTimeNow()
{
    new
        monthname[10],
        Year, Month, Day;
    getdate(Year, Month, Day);
   
    switch(Month)
    {
        case 1:  monthname = "Januari";
        case 2:  monthname = "Februari";
        case 3:  monthname = "Maret";
        case 4:  monthname = "April";
        case 5:  monthname = "Mei";
        case 6:  monthname = "Juni";
        case 7:  monthname = "Juli";
        case 8:  monthname = "Agustus";
        case 9:  monthname = "September";
        case 10: monthname = "Oktober";
        case 11: monthname = "November";
        case 12: monthname = "Desember";
    }
    return monthname;
}
#SorryForMyEnglish
Reply
#2

Get it to an array and add your returned monthname or get your year and day ToString and add your monthname between.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)