Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

326
Vistas
How do I retrieve a date of any format in a string

I am trying to retrieve a date from a string. However, it can have any given format which is possible ie.:

dddd DD MMMM YYYY HH.mm
DD/MM/YYYY HH.mm
ddd, MM DD YYYY hh.mm
DD-MM-YYYY HH.mm

etc.

I do not know the format, so I have to look for every possible format. It can also be in every language possible.

An example could be to get the date from this string:

<b>Date: </b></p>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<p class="MsoNormal">Sun, 15 Jul 2018 22:21:46 +0200</p>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;" nowrap="nowrap" valign="top">
<p class="MsoNormal" style="text-align:
                              right;" align="right">
<b>From: </b></p>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<p class="MsoNormal"><a href=" moz-do-not-send="true">
&lt;/a></p>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;" nowrap="nowrap" valign="top">
<p class="MsoNormal" style="text-align:
                              right;" align="right">
<b>To: </b></p>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<p class="MsoNormal"><a href="" moz-do-not-send="true"></a></p>
</td>
</tr>
</tbody>
</table>
</p>
<p class="MsoNormal"><br>
<br>
<span><br>
<br>
<br>
<br>
.</span></p>
<ol start="1" type="1">
<li class="MsoNormal" style="mso-margin-top-alt:
                      auto; mso-margin-bottom-alt: auto; mso-list: l0
                      level1 lfo1;">
<span></span></li><li class="MsoNormal" style="mso-margin-top-alt:
                      auto; mso-margin-bottom-alt: auto; mso-list: l0
                      level1 lfo1;">
<span></span></li><li class="M
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda