Date-Time parsing problem

Atakul Umit 0 Reputation points
2026-07-24T03:53:21.2066667+00:00

The following ISO formatted date-time fields fail on 3rd and 7th lines. As far as I understand from my trials if millisecond's part starts with 0, then the parser fails to detect text as a valid date-time field.

(Microsoft® Excel® for Microsoft 365 MSO (Version 2606 Build 16.0.20131.20152) 64-bit)

2026-07-10 13:40:08.360

2026-07-10 13:40:18.163

2023-10-17 10:18:31.080

2024-05-29 13:00:09.307

2024-05-29 18:44:48.410

2026-06-17 11:46:36.900

2026-06-17 11:46:40.010

2026-05-22 11:07:46.827

2026-04-28 11:11:47.877

2026-04-28 09:28:29.920

Microsoft 365 and Office | Excel | For business | Windows

4 answers

Sort by: Most helpful
  1. Alex James 0 Reputation points
    2026-07-25T10:31:47.47+00:00

    This looks more like Excel treating those values as text than an issue with the milliseconds themselves. Leading zeros in the fractional seconds (like .080 or .010) should be valid ISO timestamps.

    A quick workaround is to import the data as text first, then convert it with a formula or Power Query instead of relying on automatic detection. It may also help to check your regional date/time settings, as they can affect parsing. The official Excel documentation has more information on supported date formats.

    Was this answer helpful?

    0 comments No comments

  2. Barry Schwarz 5,941 Reputation points
    2026-07-24T14:37:59.1033333+00:00

    The problem is not that the value is not recognized by the parser. The problem is that the parser does not default to the correct format to display the value. I have no idea why a leading 0 in the millisecond value causes this but the solution is simple - use a custom format. I tested your values with both of the following custom formats and the both values displayed properly.

    • m/d/yyyy h:mm:ss.000
    • yyyy-m-d h:mm:ss.000

    Was this answer helpful?


  3. Atakul Umit 0 Reputation points
    2026-07-24T07:59:51.2566667+00:00

    Hi,

    It doesn't matter if input in provided as a simple copy paste operation on just entering the string from formula bar.

    The interesting thing is that if fractions are not allowed or not recognized by the parser itself than why some of them is working but others are not. Since they all have the same format and align with the ISO standards.

    Please just copy and paste the values that I have provided previously, you'll see that lines 3 and 7 will not be recognized as date-time values and be shown as it is. Just change first millisecond chars from 0 to another digit on formula bar or inside the cell, then you'll see that parser will work, and the field will be recognized as Date-Time value.

    Thanks

    Was this answer helpful?


  4. Ana Le 1,890 Reputation points Independent Advisor
    2026-07-24T04:16:03.23+00:00

    Hi,
    Thank you for providing the sample values.

    I reviewed the information you shared. Based on the data alone, there isn't enough information to determine why only some of the values are not recognized.

    Microsoft documents that Excel does not support all ISO 8601 date/time formats in every import scenario, particularly formats that include fractional seconds. You can find the documentation here: XML Schema Definition (XSD) data type support | Microsoft Support

    There is also a Microsoft Q&A discussion covering ISO date/time recognition in Excel: Excel does not recognize ISO formated date time (yyyy-mm-ddTHH:MM:ssZ) - Microsoft Q&A

    To help identify the cause, could you please provide the following information?

    • How are these values being brought into Excel (copy/paste, opening a CSV file, Power Query, or another import method)?
    • What is the expected result, and what happens on the rows that fail?

    With this information, I can further investigate whether the behavior is related to the import process or whether additional investigation is needed.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.