Posted on: 8/15/2013 6:39:17 PM | Views : 293

Hi All,
  I am not sure why this is happening, but when I am trying to append date with time, sometimes I am getting different time so here is what am I doing
public void ParseDateTime() { this.EventDate = EventDate.Add(TimeSpan.Parse(EventTime.ToString().Substring(0, 2) + ":" + EventTime.ToString().Substring(2))); } now if the EventTime is 1245, some how it is converted to 1:18:00, I am not sure why this is happening.
I also noticed that if the EventDate is "1:24 AM" before it comes to this function and the Event time enetred by the user is 1245 then after executing this function it becomes "2:09 PM".  I am not sure why this is happening.
 
any help will be appreciated,
...

Go to the complete details ...