Help inserting a past date into a field with field calculator

549
2
08-29-2012 03:32 PM
RichardCockerham
New Contributor
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)
Reply
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]
Reply
0 Kudos
RichardCockerham
New 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]


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