title: Converting (YYYY-MM-DD-HH:MM:SS) date time
body: <p>I want to convert a string like this <code>"29-Apr-2013-15:59:02"</code>
  into something more usable.</p>
  
  <p>The dashes can be easily replaced with spaces or other characters. This format would be ideal: <code>"YYYYMMDD HH:mm:ss (20130429 15:59:02)"</code>.</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Sorry, I did not specifically see the answer in another post. But again, I'm ignorant so could have been looking at the solution and didn't know it. I've got this working, but I wouldn't consider it "pretty."</p>
  
  <pre><code>#29-Apr-2013-15:59:02
  
  import sys, datetime, time
  
  #inDate = sys.argv[1]
  inDate = 29-Apr-2013-15:59:02
  
  def getMonth(month):
      monthDict = {'Jan':'01','Feb':'02','Mar':'03','Apr':'04','May':'05','Jun':'06','Jul':'07','Aug':'08','Sep':'09','Oct':'10','Nov':'11','Dec':'12'}
      for k, v in monthDict.iteritems():
          if month == k:
              return v
  
  day = inDate[:2]
  #print day
  month = inDate[3:6]
  #print month
  year = inDate[7:11]
  #print year
  time = inDate[-8:]
  #print time
  
  newDate = year+getMonth(month)+day
  newDateTime = newDate+" "+time
  
  print newDate
  print newDateTime
  </code></pre>
  
  <p>Any thoughts on improving?</p>