-2

How to convert string '01May2001' to date in python 2.6?

Thanks

m0nhawk
  • 22,980
  • 9
  • 45
  • 73
Pankaj
  • 41
  • 1
  • 4
  • 1
    Possible duplicate of [Python date string to date object](https://stackoverflow.com/questions/2803852/python-date-string-to-date-object) – Noah Cristino Jun 19 '17 at 21:23

1 Answers1

0

Code:

import datetime
datetime.datetime.strptime("01May2001", "%d%b%Y")
Noah Cristino
  • 757
  • 8
  • 29
Idanmel
  • 457
  • 4
  • 12