How to pull the year from the Date type?

540
2
Jump to solution
03-13-2020 05:59 AM
DaveK
by
Occasional Contributor

Hello, 

I am creating a survey that has a date field which contains a full date (month/day/year) as well as a year field. Is it possible to pull the year out of the Date type field using the Pulldata calculation? or is there another way to format a second Date type field to only show the year? 

Thanks. 

0 Kudos
1 Solution

Accepted Solutions
Jing_Sun
Esri Contributor

Hello David,

I think the function your are looking for is the format-date function. You can just format the recorded datetime value to year only.

Details of this function can be found in the Date formatting section of the Formulas page.

Formulas—Survey123 for ArcGIS | Documentation 

Cheers,

Sun

View solution in original post

2 Replies
DougBrowning
MVP Notable Contributor
Jing_Sun
Esri Contributor

Hello David,

I think the function your are looking for is the format-date function. You can just format the recorded datetime value to year only.

Details of this function can be found in the Date formatting section of the Formulas page.

Formulas—Survey123 for ArcGIS | Documentation 

Cheers,

Sun