I am sorry for posting this question as it may be find silly to all, but I am not getting the exact solution.
The question is: I have a Date time picker in my proje
if (string.IsNullOrEmpty(dateInsert.Text) { MessageBox.Show("Please select date!"); dateInsert.Focus(); return; }
hope this helps someone