PRASANTA BISWAS

PRASANTA BISWAS

  • NA
  • 27
  • 9.2k

How to calculate date time using dtpicker and masked edit

Jan 30 2014 6:28 AM
Dear all
I am using below this code for getting Date with Time Value when I will enter data through Date Time Picker and Masked Edit Control. I am getting error like "string was not recognized as a valid date time".

string SCDateTimeValue = Convert.ToDateTime(dtpSCDate.Value) + mskSCTime.Text;

Thanks all

Answers (3)