LocalYear
4 min
returns the value for the year for the local date the localyear function does not consider parameter when used in picklist syntax localyear(utcdatetime, timezone) enabled for for a description of the business object categories, see notes on "enabled for" docid\ u26v9fecfs6ilwa0 pvjd business object category yes/no business rules before save rules yes business rules calculation rules (after save, with or without also recalculate on load) yes business rules calculation rules (before save or always, without also recalculate on load) yes business rules calculation rules (before save or always, with recalculate on load) yes business rules editing rules yes business rules initialization rules yes business rules read only rules yes business rules required rules yes business rules validation rules yes client expressions yes object permissions yes services yes ldap yes mobile yes quick actions (except ui quick actions) yes ui quick actions yes reports yes search/dashboard without field references yes search/dashboard with field references yes parameters parameter description utcdatetime (optional) the datetime value for which to find the year timezone (optional) the time zone, in iana format if you do not specify a time zone, the application uses the time zone associated with the current session return value four digit number, between 1970 and 2099 example $(localyear()) if today is wednesday april 10, 2014 at 13 45 26 in the current time zone, this function returns 2014 $(localyear(createddatetime)) returns the year in the current time zone when the incident was created $(localyear(createddatetime, "antarctica/south pole")) returns the year of the day in the antarctica time zone when the incident was created
