title: How to use a date in the url with Rocket.rs?
body: <p>How would you alter the example from Rocket's website to take a date rather than an age/<code>u8</code>?</p>
  
  <p>The example from the website:</p>
  
  <pre><code>#![feature(proc_macro_hygiene, decl_macro)]
  
  #[macro_use] extern crate rocket;
  
  #[get("/hello/&lt;name&gt;/&lt;age&gt;")]
  fn hello(name: String, age: u8) -&gt; String {
      format!("Hello, {} year old named {}!", age, name)
  }
  
  fn main() {
      rocket::ignite().mount("/", routes![hello]).launch();
  }
  </code></pre>
  
  <p>I'd like to have more or less the same output (Hello, 58 year old named John!) but have something like this</p>
  
  <pre><code>#[get("/hello/&lt;name&gt;/&lt;birthdate&gt;")]
  </code></pre>
  
  <p>instead of that</p>
  
  <pre><code>#[get("/hello/&lt;name&gt;/&lt;age&gt;")]
  </code></pre>
  
  <p>I think the right struct is <a href="https://docs.rs/chrono/0.4.6/chrono/struct.DateTime.html" rel="nofollow noreferrer">chrono::DateTime</a> and that somehow <a href="https://api.rocket.rs/v0.4/rocket/request/trait.FromParam.html" rel="nofollow noreferrer">rocket::request::FromParam</a> is involved but I'm a bit lost from there.</p>