ultimatenewbie

How to utilize layer name to populate attribute field

Discussion created by ultimatenewbie on Apr 23, 2014
Latest reply on Apr 24, 2014 by mdenil
Hello everyone,
Fresh to the forum and new to python. Would highly appreciate if someone can help me with the following:
I have a large pile of shapefiles that are named by the date of their creation, eg. xxx20140123yyy.shp,
I'd like to add a new field to each of their attribute table and populate it with the file's date of creation by pulling the info from the file name, and finally laid out as "23/01/2014" (the opposite order of the original).
I was hoping to get this done with model builder, but have no idea what to code in the field calculator...

Outcomes