Get Value Of Month form Date

I want to get value of month from date ;

i have this info(int2str(mthOfYr(BirthDate.dateValue()))); and when i select for exemple 1//08/2012 i get 8; i want get 08 like result

You’re asking a wrong question. You already know how to get the month number, you don’t know how to format the number.

num2Str0(8,2) returns what you want.

You can also use STRRFIX function like this…

STRRFIX(int2str(mthOfYr(BirthDate.dateValue())),2,‘0’);

I think the better solution of the two would be that of Martin Drab…