<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: Ceronegativo's Code Snippets</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sun, 12 Oct 2008 05:07:18 GMT</pubDate>
    <description>DZone Snippets: Ceronegativo's Code Snippets</description>
    <item>
      <title>Acceder a la fecha en la que una foto fue tomada en VB .NET</title>
      <link>http://snippets.dzone.com/posts/show/2931</link>
      <description>//Funci&#243;n a la que se le pasa el archivo jpg o jpge y devuelve la fecha en la que fue tomada&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;    Public Function ObtieneFecha(ByVal RutaArchivo As String) As Date&lt;br /&gt;&lt;br /&gt;        Dim image As New Bitmap(RutaArchivo)&lt;br /&gt;        Dim propItems As System.Drawing.Imaging.PropertyItem() = image.PropertyItems&lt;br /&gt;&lt;br /&gt;        Dim encoding As New System.Text.ASCIIEncoding&lt;br /&gt;&lt;br /&gt;        For i As Integer = propItems.GetLowerBound(0) To propItems.GetUpperBound(0)&lt;br /&gt;            If propItems(i).Id.ToString = "36868" Then&lt;br /&gt;                Dim strAux1() As String = Split(encoding.GetString(propItems(i).Value), " ")&lt;br /&gt;                Dim strAux2() As String = Split(strAux1(0), ":")&lt;br /&gt;                Dim strAux3() As String = Split(strAux1(1), ":")&lt;br /&gt;                Return CDate(strAux2(0) &amp; "/" &amp; strAux2(1) &amp; "/" &amp; strAux2(2) &amp; " " &amp; strAux3(0) &amp; ":" &amp; strAux3(1) &amp; ":" &amp; strAux3(2))&lt;br /&gt;            End If&lt;br /&gt;        Next&lt;br /&gt;        image.Dispose()&lt;br /&gt;    End Function&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Mon, 30 Oct 2006 22:16:11 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/2931</guid>
      <author>ceronegativo (Pablo)</author>
    </item>
  </channel>
</rss>
