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

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -