converting string date to dd.MM.yyyy format
<p>I am working on vb.net application  </p>

<p>am getting date like this :</p>

<pre><code>recevdate = rs("ITIReceiveddate")
</code></pre>

<p>my recevdate format is like this : <code>2/27/2016 month/date/year</code></p>

<p>i want to convert like this : <code>date.month.year  27.2.2016</code>   </p>

<p>so i wrote code like this :</p>

<pre><code> Dim dt as string = DateTime.ParseExact(recevdate, "dd.MM.yyyy", Nothing) 
</code></pre>

<p>but its getting error ..</p>

<p>What is wrong with my code? how i can rectify this issue?<br>
any help is very appreciable..Thanks</p>