title: Converting DateTime string to 24 hours format DateTime data type in C#
body: <p>I am trying to convert a simple DateTime string like "12/12/12 14:00:00" to 24 Hours DateTime Type object however upon conversion it gives me 12 hours format as below:
  "12/12/12 02:00:00". How can I get my desired 24 hours format datetime object in c#.</p>
  
  <p>Basically What I am trying to do is that I have two different string variables for date and time. I am combining them and converting them into datetime. Which after concatenation are fine but converts to 12 hours after conversion into datetime.</p>
  
  <pre><code>string app_time = Convert.ToDateTime(appointment.ScheduledTime_Short).ToString("HH:mm:ss");
                  string app_date = Convert.ToDateTime(appointment.ScheduledDate_Short).ToString("yyyy-MM-dd");
  
                  string fdt = app_date + " " + app_time;
                  appointment.ScheduledDate = startDateTime;
  </code></pre>