We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

how to display date type variable in Months and Year format on Service portal

Are Kaveri
Tera Contributor

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.

 

4 REPLIES 4

Not applicable

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

@Community Alums  where to add above conversion?

Not applicable

Hello @Are Kaveri 

 

You can use Business rule and add it there.

Hi @Community Alums 

 

I tried using Business rule it was not working. can you provide sample script so that i can do it accordingly.