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

Notifications

Announcements

No record found.

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,039 Super User 2025 Season 2

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,598 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,039 Super User 2025 Season 2 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,598 on at

    Modify or insert into D365FO?

  • Waed Ayyad Profile Picture
    9,039 Super User 2025 Season 2 on at

    Modify I want to modify just one cell in Excel.

    Regards,

    Waed

  • Deepak Agarwal Profile Picture
    8,598 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,039 Super User 2025 Season 2 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,598 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,039 Super User 2025 Season 2 on at

    Hi Harry,

    I update Excel cells before calling data entity to import data

    Regards,

    Waed

  • Martin Dráb Profile Picture
    237,821 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 512 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 291 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans