3
Answers

How to calculate date time using dtpicker and masked edit

PRASANTA BISWAS

PRASANTA BISWAS

11y
1.8k
1
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)