DateTime
Get Year
5min
This action extracts the year from a DateTime.
![Document image Document image](https://images.archbee.com/pD-o7nZLwDiSBwGlsHA9q/zSia8DuW2l9-MUUip0k49_tdy.png?format=webp)
- [ I ] Date: DateTime to extract year from.
- [ O ] Year: Integer representing the extracted year.
![Document image Document image](https://images.archbee.com/pD-o7nZLwDiSBwGlsHA9q/DPyLojlVoqeup16jrVBuJ_tdy.png?format=webp)
- Drag action onto canvas to get familiarized with it.
![Document image Document image](https://images.archbee.com/pD-o7nZLwDiSBwGlsHA9q/vxs7ZlGYHJxjcLN1nizMY_tdy.png?format=webp)
- Declare some variables to be used with the action.
![Document image Document image](https://images.archbee.com/pD-o7nZLwDiSBwGlsHA9q/rygVEb7aZgmbfCmkpYdmA_tdy.png?format=webp)
- Assign the newly created variables.
- Save & Run the process and then Check Instance to see the output.
![Document image Document image](https://images.archbee.com/pD-o7nZLwDiSBwGlsHA9q/LmmnxjkOnFD6bft6Md80c_tdy.png?format=webp)
- Extracting the year from a date.