I have to delete from "a las.. "
to leave only the date, in Python.
21-MARZO-2017 A LAS 1600 HRS
31-ENERO A LAS 1300 HRS.
30-ENERO-2017 A LAS 1600 HRS.
20/02/2017 A LAS 1200 HORAS (MEDIODíA)
17-FEBRERO A LAS 1200 HRS (MEDIODíA)
18-NOVIEMBRE A LAS 1600 HRS.
18-ENERO 2017 A LAS 1500 HRS.
31-ENERO-2017 A LAS 1600 HRS.
16-MAYO-2017 A LAS 1500 HRS.
09-FEBRERO-2017 A LAS 1500 HRS.
30-MARZO A LAS 1600 HRS
I tried the strip()
function but it did not work.
x = "31-Enero-2017 a las 1600 hrs."
y = x.rstrip("a las")
print y