How to pick random word from list?

MisterP

Пользователь
Регистрация
08.02.2014
Сообщения
87
Благодарностей
0
Баллы
6
I have a field where I need to state the month of registration in words!

I obviously prefer to choose the internal profile of Zennoposter to fill the profile, however the month is in numbers.

How can I convert the number of the month within zennoposters "profile feature" (for instance 3 to March) to a word?

Or another way: Is there a possibility to create a list of words like from January, to December, and then have a random pick?

Thanks
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113
Add this in C# code action and in return you will have month in word.

C#:
System.Globalization.DateTimeFormatInfo mfi = new System.Globalization.DateTimeFormatInfo();
return mfi.GetMonthName(project.Profile.BornMonth).ToString();
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)