I want to do something like this, I tried multiple ways but I am unable to find it. I am getting start and end date but not the current month. I want current month so it works with all locale
if(CURRENT MONTH){
// Do This
}
I want to do something like this, I tried multiple ways but I am unable to find it. I am getting start and end date but not the current month. I want current month so it works with all locale
if(CURRENT MONTH){
// Do This
}
use the Date object for get month as follows,
if you want to get month name, firstly you should declare the array including with months and then get the month name using this array as follows,
then you can use
month
ornameOfMonth
as follows,