I have a DateTimePicker called dtProcurationDate it show the date as custom format yyyy/M/d .. now i'm trying to get only the year from it with code
string year = dtProcurationDate.Value.Year.ToString();
also tried
this.dtProcurationDate.CustomFormat = "yyyy";
string year = dtProcurationDate.Value.Year.ToString();
but it gives me a null value ..
yearvalue ... i'm sure that i did something stupid .. still trying