how to display date type variable in Months and Year format on Service portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2023 02:56 AM
Hello ,
I have below requirement.
we have a Record producer with the following variable called Used life.
Used life : Date type variable.
I need this variable to display only Month and year not days.
Any solution please share.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2023 07:01 AM
Hello @Are Kaveri
use this:-
date.getFormatBy('MM-YY');
Please mark my Solution as Accept and Give me thumbs up, if you find it helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2023 09:50 AM
@Samaksh Wani where to add above conversion?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2023 10:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2023 10:03 PM
I tried using Business rule it was not working. can you provide sample script so that i can do it accordingly.