I tried to set values for a Date Field, like 07/23/2014 using the Field Calculator. I selected the Date Field, VB Script for the Parser, Date for the Type, Then I tried several different formats of Date values but got errors. How to do it? Thanks.
Here is a usefull link regarding field calculator: http://www.esri.com/news/arcuser/0405/files/fieldcalc_1.pdf
Date operations are described at the end of the document.
If you want to set the date to 07/23/2014 (today date), the following should work: Date() or Now().
Hope this helps.
Thanks. It works. But I only want to it looks like 7/23/2014, rather than 7/23/2014 12:50:32. How can it be done?
How are you storing your data? If it is a shapefile this does not support having the date and time in the same field
ArcGIS Help 10.1
Anthony: Thanks for your response. Using Olivier recommended approach, it was solved in generally.
If you are using the Field Calculator on a field:
If the Field type does not have date type set or string, it will not work. Might need to create a new date or string field.
Retrieving data ...