1

Could any one help me out to covert a date format like "Wed Mar 13 10:10 EDT 2013" into the format like "2013-03-13 10:10" , I have tried "get time" keyword from Built-in which isn't working in this case since RF is not able to recognize the date format like "Wed Mar 13 10:10 EDT 2013" . So is there any possible solution for this issue in python . Please let me know

Martijn Pieters
  • 963,270
  • 265
  • 3,804
  • 3,187
PKR
  • 189
  • 1
  • 4
  • 11

1 Answers1

2
from dateutil.parser import parse as dateparser
dateparser("Wed Mar 13 10:10 EDT 2013").strftime("%Y-%m-%d %H:%M")

Out[6]: '2013-03-13 10:10'

jassinm
  • 6,973
  • 3
  • 32
  • 42