Check out example codes for "c# compare months". It will help you in understanding the concepts better.

Code Example 1

if(DateTime.ParseExact(DDMonths.SelectedItem.Text, "MMMM", CultureInfo.CurrentCulture).Month > DateTime.Now.Month) {
  ...
}

Learn ReactJs, React Native from akashmittal.com