Python Forum
ValueError: time data 'None' does not match format '%Y-%m-%dT%H:%M:%S.%f'
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ValueError: time data 'None' does not match format '%Y-%m-%dT%H:%M:%S.%f'
#5
for row in doc.findall('ROW'):
    transaction_date = row.find('TransactionDate').text
    previous_update = datetime.strptime(transaction_date, "%Y-%m-%dT%H:%M:%S.%f")
    print(previous_update, type(previous_update))
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
RE: ValueError: time data 'None' does not match format '%Y-%m-%dT%H:%M:%S.%f' - by buran - Sep-03-2020, 08:22 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python date format changes to date & time 1418 4 784 Jan-20-2024, 04:45 AM
Last Post: 1418
  Export data from PDF as tabular format zinho 5 828 Nov-11-2023, 08:23 AM
Last Post: Pedroski55
  How to properly format rows and columns in excel data from parsed .txt blocks jh67 7 2,059 Dec-12-2022, 08:22 PM
Last Post: jh67
  Issue in changing data format (2 bytes) into a 16 bit data. GiggsB 11 2,812 Jul-25-2022, 03:19 PM
Last Post: deanhystad
  What time format is this? wrybread 3 2,214 Jun-15-2022, 02:46 PM
Last Post: snippsat
  Real time data satyanarayana 3 30,322 Feb-16-2022, 07:46 AM
Last Post: satyanarayana
  Need Help writing data into Excel format ajitnayak87 8 2,692 Feb-04-2022, 03:00 AM
Last Post: Jeff_t
  How to read rainfall time series and insert missing data points MadsM 4 2,310 Jan-06-2022, 10:39 AM
Last Post: amdi40
Smile Set 'Time' format cell when writing data to excel and not 'custom' limors 3 6,510 Mar-29-2021, 09:36 PM
Last Post: Larz60+
  Formatting Data/Time with Pyodbc and openpyxl bearcats6001 0 2,338 Aug-17-2020, 03:44 PM
Last Post: bearcats6001

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020