title: windows service after starting exception
body: <p>I have developed a windows service. When I debug the service, it works fine.</p>
  
  <p>But when I install it &amp; start the service it throws exception for <code>datetime</code> when storing into the MYSQL database. Since the format of the datetime on my system is different from the one on the MySQL database.</p>
  
  <p>My system <code>datetime</code> format is <code>mm-dd-yyyy HH:mm:ss</code>. MYSQL does not accept this <code>mm/dd/yyyy HH:mm:ss tt</code> format for the datetime column</p>
  
  <p>which format will be chosen by window service?</p>