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 :
Microsoft Dynamics AX (Archived)

Bring Date Fields from CSV to AX using code

(0) ShareShare
ReportReport
Posted on by 260

Hi,

I have move date from CSV to ax using code 

jkmsdax2012.wordpress.com/.../import-csv-file-to-ax-2012-using-x-code-and-as-runbase-batch

Using above link data are moved from CSV to ax, But I have date fields in CSV file, That particular fields not update in ax ,

Can any pls share your idea, how to bring that date fields in ax  

Regards

Shiva

*This post is locked for comments

I have the same question (0)
  • Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    Are you facing any error during import?Code in the shared link looks good.Can you share your code, such that can check if anything is missing.

  • István Orosz Profile Picture
    2,137 on at

    Hi,

    How did you modify the code? It reads only two strings, so maybe the date format conversion is missing from yours. Please share that part, without that it is challenging to solve your problem.

    Regards,

    István

  • sivakumar moorthy Profile Picture
    260 on at

    Hi Istvan

     Thank for replay

    jkmsdax2012.wordpress.com/.../import-csv-file-to-ax-2012-using-x-code-and-as-runbase-batch

    I use above link ,its working good ,problem is date fields not able to read

    Regards

    Shiva

  • Verified answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    Please use the function str2date while importing the date from csv like below, if in case date is treated like a string.

    str2Date(conpeek(record, 1), 123);

    Refer links:

    str2Date Function [AX 2012]

    (msdn.microsoft.com/.../aa554244.aspx)

  • sivakumar moorthy Profile Picture
    260 on at

    Hi

     Thank for reply,Its woking

    Thank

    Siva

  • Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    Could you please mark helpful answers as verified to close the thread.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans