I'm using InfoPath 2007
I need to get the current month each time the form is opened. I put textbox on the screen, set its data type to "Whole Number (integer)" and set its value to: substring(today(), 6, 2)
If I hit "Preview" it works just fine, and the number 5 is displayed (because this is May and that is the 5th month)
However, when I publish the form and open it, the textbox is empty?
What am I missing?