web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to update excel datetime cells in Dynamics 365 FO

(0) ShareShare
ReportReport
Posted on by 9,061 Super User 2026 Season 1

Hi All,

I have an excel file with data that I imported using an upload file, and I want to change the value of a datetime cell.How do I do this through X++ code?

Regards,

Waed

I have the same question (0)
  • Suggested answer
    Deepak Agarwal Profile Picture
    8,602 on at

    You can try something like below

    str2Date((range.get_Item(i, 2).value),123);

    Also can you share an example of source data and what is expected in target.

  • Waed Ayyad Profile Picture
    9,061 Super User 2026 Season 1 on at

    Hi Harry,

    I want to modify value of datetime cell using this value  1/12/2023 9:46:29 PM for example I am reading value from datetime field in table in Dynamics 365 FO

    Regards,

    Waed

  • Deepak Agarwal Profile Picture
    8,602 on at

    Modify or insert into D365FO?

  • Waed Ayyad Profile Picture
    9,061 Super User 2026 Season 1 on at

    Modify I want to modify just one cell in Excel.

    Regards,

    Waed

  • Deepak Agarwal Profile Picture
    8,602 on at

    Sorry but now its confusing.

    What exactly you are trying to do,

    Importing excel into FO Or Exporting data from FO,

    Why you want to modify excel from x++ code.

  • Waed Ayyad Profile Picture
    9,061 Super User 2026 Season 1 on at

    Hi Harry,

    I have an Excel file I want to upload using file upload, While I am uploading it I want to fill cell "its type datetime" then I want to call data entity to import the updated excel file using data entity

    Regards,

    Waed

  • Suggested answer
    Deepak Agarwal Profile Picture
    8,602 on at

    Ok, so you got an excel and first wanted to correct some data into the excel using code and than import this updated excel into FO using data entity.

    If my understanding is correct, you can write your code into data entity and manipulate excel cell value before importing.

  • Waed Ayyad Profile Picture
    9,061 Super User 2026 Season 1 on at

    Hi Harry,

    I update Excel cells before calling data entity to import data

    Regards,

    Waed

  • Martin Dráb Profile Picture
    238,738 Most Valuable Professional on at

    We already have at least six threads about the same thing. Starting the discussion again and again from scratch makes no sense.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 577 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 309

#3
Diego Mancassola Profile Picture

Diego Mancassola 259

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans