Skip to content

Commit 8d4fe69

Browse files
authored
Merge pull request #8 from Thrizvi/Thrizvi-patch-9
Create CurrentMonth.js
2 parents 1eb1bd5 + 702f0ea commit 8d4fe69

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var currentDate = new GlideDate();
2+
var monthNumber = currentDate.getMonth();
3+
var monthNames = [
4+
"Jan", "Feb", "Mar", "Apr", "May", "June",
5+
"July", "Aug", "Sept", "OCT", "Nov", "Dec"
6+
];
7+
8+
var monthName = monthNames[monthNumber - 1];
9+
gs.log(monthName);

0 commit comments

Comments
 (0)