Hello all
After some time reading the forums here and learn about xml/lua i'm trying to make some addons myself.
The xml part of it is getting better but lua is still giving me lot's of troubles^^.
I now need to get the date function working.
I'm following the information on
http://www.wowwiki.com/API_date
But can't get it to work
If i understand it correct it should be working like this: date(%m);
and that gives then the month??
but if i use it for the varriable:
Code:
Code:
NAME_MONTH = "date(%m)";
The value of the variable is then just date(%m),
It doesn't change in the current month.
I know there's also os.date(); but i have the same problem there as date();
Could someone help me how to give the variable NAME_MONTH the value of the month?
Or an example would be very fine so that i can experiment with it.
Greetings Salieri