- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2025 07:12 AM
I have a table that contains a date field. I'd like to create a function field on that table that extracts the year from the date field. I need this for reporting. How can I accomplish this? Is it possible?
I'd like to perform the same steps to also extract the month.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2025 02:38 AM
@Renee-17 - Please try with glidefunction:substring(sys_created_on,"1","4").
Note: I've used sys_created_on column to showcase the result. You can use your own column.
Result
Thanks & Regards,
Vasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2025 07:27 AM
Hi @Renee-17
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2025 08:21 AM
I've looked at these but don't see how I can use them to create a Function Field for a table. I have to use glidefunction. For example:
glidfunction:substring(DisplayName,'1','4')
I'd like to replace DisplayName with Date and and just extract the year part of the date but date is not a text field so is there anyway of doing this via creating a function field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2025 02:38 AM
@Renee-17 - Please try with glidefunction:substring(sys_created_on,"1","4").
Note: I've used sys_created_on column to showcase the result. You can use your own column.
Result
Thanks & Regards,
Vasanth