Question : C# DateTime Error

Experts
Please see the code attached and also the image below and please suggest me where is the mistake..
Please suggest me how to debug?
Thanking you,
Anindya
1:
2:
3:
4:
5:
DateTime startTime = Convert.ToDateTime(label3.Text);

        DateTime endTime = DateTime.Now;

        TimeSpan span = endTime.Subtract(startTime);
Attachments:
 
 

Answer : C# DateTime Error

Can you list the full class?
Otherwise, try this.

You need to declare them as members without initializing the value.
In the class constructor, do the initialization.
Random Solutions  
 
programming4us programming4us