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'
#3
@Larz60+ Sorry for not placing the complete error, Please find below

Error:
runfile('C:/Users/relangovan/Desktop/Project_Document/XML/untitled44.py', wdir='C:/Users/relangovan/Desktop/Project_Document/XML') Traceback (most recent call last): File "C:\Users\relangovan\Desktop\Project_Document\XML\untitled44.py", line 26, in <module> previous_update = datetime.strptime(Date, "%Y-%m-%dT%H:%M:%S.%f") File "C:\Users\relangovan\Anaconda3\lib\_strptime.py", line 568, in _strptime_datetime tt, fraction, gmtoff_fraction = _strptime(data_string, format) File "C:\Users\relangovan\Anaconda3\lib\_strptime.py", line 349, in _strptime raise ValueError("time data %r does not match format %r" % ValueError: time data 'None' does not match format '%Y-%m-%dT%H:%M:%S.%f'
Reply


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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python date format changes to date & time 1418 4 628 Jan-20-2024, 04:45 AM
Last Post: 1418
  Export data from PDF as tabular format zinho 5 712 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 1,903 Dec-12-2022, 08:22 PM
Last Post: jh67
  Issue in changing data format (2 bytes) into a 16 bit data. GiggsB 11 2,680 Jul-25-2022, 03:19 PM
Last Post: deanhystad
  What time format is this? wrybread 3 2,101 Jun-15-2022, 02:46 PM
Last Post: snippsat
  Real time data satyanarayana 3 24,610 Feb-16-2022, 07:46 AM
Last Post: satyanarayana
  Need Help writing data into Excel format ajitnayak87 8 2,553 Feb-04-2022, 03:00 AM
Last Post: Jeff_t
  How to read rainfall time series and insert missing data points MadsM 4 2,196 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,324 Mar-29-2021, 09:36 PM
Last Post: Larz60+
  Formatting Data/Time with Pyodbc and openpyxl bearcats6001 0 2,298 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