I want show case current month name(JAN,FEB,,,ETC.,) in email body and sub as well
This content was last updated in 2024. It may still be useful, but could contain outdated information. Please confirm its accuracy before relying on it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2024 11:52 PM
Hi,
I want show case current month name (JAN,FEB,,,ETC.,) in email body and sub as well.
Regards,
Sanju.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2024 03:18 AM
Hi @Community Alums ,
Please refer the below link.
https://www.servicenow.com/community/developer-forum/printing-current-month-name/m-p/1442076
Create Email script and in that write below code.
var gd = new GlideDate();
gs.log("MONTH Name "+gd.getByFormat("MMMM"));
var monthName=gd.getByFormat("MMMM");
template.print("Created Month Name "+monthName);
Please mark my answer as helpful and correct if it helps to resolve your issue.
Regards,
Namrata
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2024 12:33 AM
Hi @Community Alums ,
Is there way to print year as well