From 702f0eae8023a2880684e6dc1a1ea5a17de11476 Mon Sep 17 00:00:00 2001 From: Thrizvi <145013431+Thrizvi@users.noreply.github.com> Date: Tue, 31 Oct 2023 18:34:52 +0530 Subject: [PATCH] Create CurrentMonth.js --- Background Scripts/Get Current Month/CurrentMonth.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Background Scripts/Get Current Month/CurrentMonth.js diff --git a/Background Scripts/Get Current Month/CurrentMonth.js b/Background Scripts/Get Current Month/CurrentMonth.js new file mode 100644 index 0000000000..fc3bbd42e3 --- /dev/null +++ b/Background Scripts/Get Current Month/CurrentMonth.js @@ -0,0 +1,9 @@ +var currentDate = new GlideDate(); +var monthNumber = currentDate.getMonth(); +var monthNames = [ + "Jan", "Feb", "Mar", "Apr", "May", "June", + "July", "Aug", "Sept", "OCT", "Nov", "Dec" +]; + +var monthName = monthNames[monthNumber - 1]; +gs.log(monthName);