asp.net c# better way to Parse numbers and datetimes from query string then try/catch
<p>is there a better way then a try/catch to parse numbers and datetimes without crashing the page?</p>

<p>if they are not valid numbers/datetimes they should be null.</p>

<p>here is what I've got so far:</p>

<p><code></p>

<pre><code>long id = null;
try{
    id = Int64.Parse(Request.QueryString["id"]);
}catch(Exception e){}

DateTime time = null;
try{
    time = DateTime.Parse(Request.QueryString["time"]);
}catch(Exception e){}
</code></pre>

<p></code></p>
