Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 9th, 2012  |  syntax: None  |  size: 0.18 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Is it possible to specify Date XFStyle without an exact format with xlwt?
  2. datestyle = xlwt.XFStyle()
  3. datestyle.num_format_str = "YYYY-MM-DD"
  4. ws.write(row, column, "", datestyle)