Needing Help with a Python Statement.

Discussion created by AndrewRoberts on Feb 24, 2012
Latest reply on Jul 4, 2012 by fabl

I have some data in ArcGIS that has a column in the attribute table for month. Right now it looks like 1, 2, 3, ... ,12. but I need it to look like 01, 02 , 03, ... , 12.

I figured the best way to do this, because i have a lot of data, would be to use calculate field and create a new field for month, with a python statement that would add a 0 to the front of any of the numbers with a length of one. I have yet to figure out a statment that would do this, I've tried many variations of !NewMonth! = '0' + !month!

Any help is apprecaited.