How to get next months and previous months using the given short month in javascript


a month is given in short notation.
Month="DEC"
I just wanted to get the coming 8 months and previous 3 months of DEC in some arrays like below.

nextMonths =["JAN","FEB", "MAR", "APR", "MAY","JUN","JUL","AUG"]

And

PrevMonths =["NOV","OCT", "SEP"]
. Expecting an easy solution in JavaScript.

Source: JavaSript – Stack Overflow

November 22, 2021
Category : News
Tags: angular | javascript | typescript

Leave a Reply

Your email address will not be published. Required fields are marked *

Sitemap | Terms | Privacy | Cookies | Advertising

Senior Software Developer

Creator of @LzoMedia I am a backend software developer based in London who likes beautiful code and has an adherence to standards & love's open-source.