//to configure datetimepicker for month and year. dateTimePicker1.Format = DateTimePickerFormat.Custom; dateTimePicker1.CustomFormat = "MMM-yyyy"; dateTimePicker1.ShowUpDown = true; //to get value of the datetimepicker. dateTimePicker1.Value.ToString("yyyy-MM");
Additional Reading at :
No comments:
Post a Comment