c# - DateTime getting todays Month in if statement -


i want if statement if month == january example load else if month == april load else. can please thanks

you can use month property, range 1-12:

int month = datetime.now.month; if(month == 4) //april {.. 

Comments

Popular posts from this blog

Python __call__ special method practical example -

arrays - jQuery - Retrieve values from HTML elements and return their sum -