Anyone know how to make python put a date stamp on a filename when creating a feature?
Thanks,
Steve
Solved! Go to Solution.
Understood. Try this
import datetime
currentdate = datetime.date.today()
nohyphendate = currentdate.strftime(%Y%m%d)
print "output_" + nohyphendate
I had an error in my previous reply. If you use a %b you get the month abbreviation. %m gets you the integer of the month. Does that fix your error?
Thanks,
Brandon
You're welcome. Glad you were able to make it work.