title: How to set global function to convert all different formats of dates for different locales?
body: <p>We are creating a system with different locales. 
  I can say all of the .net locales that can be found here : 
  <a href="https://dotnetfiddle.net/e1BX7M" rel="nofollow noreferrer">https://dotnetfiddle.net/e1BX7M</a></p>
  
  <p>I googled a lot and datetime.parseexact or datetime.parse is only for one specific format, for example dd/mm/yyyy or mm/dd/yyyy.</p>
  
  <p>Examples : 
  When I use something like this </p>
  
  <pre><code>Date.Parse(Request.QueryString("asofdate"), CultureInfo.CurrentCulture)
  </code></pre>
  
  <p>and Request.QueryString("asofdate") format is dd/mm/yyyy, the system throws exception, otherwise when the format is mm/dd/yyyy works fine.</p>
  
  <p>I also tried by using :</p>
  
  <pre><code>Date.Parse(Request.QueryString("asofdate"), CultureInfo.CurrentCulture)
  </code></pre>
  
  <p>How to handle all formats into one function? Do I have to use tryparse 10 times instead of using one integrated function from Date structure?</p>
  
  <p>EDIT: The question : 
  Is it possible to reduce code from 
  tryparse (one format)
  tryparse ( second format)
  tryparse (third format) 
  by using one line of code.</p>