Select to view content in your preferred language

Help inserting a past date into a field with field calculator

824
2
08-29-2012 03:32 PM
RichardCockerham
Deactivated User
Using ArcGIS 10, i have a field titled date.  I can put a previous date in one of the attributes under that field heading but would essentially like to copy and paste that date into the remaining attribute table.  Another way to put it is I would like the option to copy once and paste once into the rest of the field (rather than only one at a time).
Thanks
Richard
Tags (2)
0 Kudos
2 Replies
JakeSkinner
Esri Esteemed Contributor
Hi Richard,

Instead of copying/pasting the date into the field, use python's time.strftime() function within the field calculator.  This will update all the rows for that field with the specified date.  Be sure you have 'Python' checked at the top of the field calculator.

Ex:

[ATTACH=CONFIG]17375[/ATTACH]
0 Kudos
RichardCockerham
Deactivated User
Hi Richard,

Instead of copying/pasting the date into the field, use python's time.strftime() function within the field calculator.  This will update all the rows for that field with the specified date.  Be sure you have 'Python' checked at the top of the field calculator.

Ex:

[ATTACH=CONFIG]17375[/ATTACH]


WHAT A GREAT HELP!!  THANKS SO MUCH 🙂
0 Kudos