How to convert a string in the format "%d/%m/%Y" to timestamp?
"%d/%m/%Y"
"01/12/2011" -> 1322697600
>>> import time >>> import datetime >>> s = "01/12/2011" >>> time.mktime(datetime.datetime.strptime(s, "%d/%m/%Y").timetuple()) 1322697600.0
2.1m questions
2.1m answers
60 comments
57.0k users