AnsweredAssumed Answered

Truncate date field

Question asked by Tonyalmeida on Dec 2, 2013
Latest reply on Dec 2, 2013 by Tonyalmeida
I have a layer with field "Year2_Conv" that has dates like so 1/2/2003. I am trying to just keep the year 2003 but i am having trouble.
I am using Python and the field calculator. Here is the syntax:

!Year2_Conv![-4:]


I get a an of "The Value Type is incompatible with the field type Year2_Conv.
I am guessing because my values are no dd/mm/yyyy?

Any help would be great.

Outcomes