title: The given path's format is not supported (VB.Net)
body: <p>Below coding are code that I used to rename and store images at temporary files.</p>
  
  <p>Declaration as below :</p>
  
  <pre><code>Dim extension As String = Path.GetExtension(hpf.FileName)
  Dim rename As String = Now.ToString(gsUserStation + "ddMMyyHHmmss")
  Dim imageRename As String = Path.Combine(rename + extension)
  Dim imgUrl As String = Server.MapPath("source") &amp; "\" &amp; Path.Combine(rename + extension)
  </code></pre>
  
  <p>And code to save :</p>
  
  <pre><code>hpf.SaveAs(Server.MapPath("source") &amp; "\" &amp; imageRename)
  </code></pre>
  
  <p>This coding working fine but I don't know what happened when I run it sometimes with different code of station, it threw me an error </p>
  
  <blockquote>
    <p>The given path's format is not supported.</p>
  </blockquote>
  
  <p>When I do debugging, the variable <strong>rename</strong> (expectation result : BKI081116120002) became something like <code>B+08:00I0811160002</code>. I don't get it, how come the result of station code <code>BKI</code> became <code>B+08:00I</code>. So that is the one that causing the error to happen. </p>
  
  <p>Any suggestion from you guys? Thank you.</p>