hi guyz! Currently, i have the code below
but when try to run it it gives me an error saying "Operator '!=' cannot be applied to operands of type 'method group' and 'method group'". Can anybody please tell me what is the right way to compare two dates? thanks in advance!!!Code:if (dtpDate.Value.ToShortDateString != DateTime.Now.ToShortDateString) { result = MessageBox.Show(this,"The date is not the date today.", "BCMD", MessageBoxButtons.YesNo, MessageBoxIcon.Information); MessageBox.Show(this, result.ToString ()); }




Reply With Quote