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(datepicker.Text == " ") messagebox.show("Please Select Date"); // this works 100 %