Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

how to get date format using x++ from system date

(0) ShareShare
ReportReport
Posted on by 3,945

Hi all,

how to get system date format using x++, my requirement is to get system date format then corresponding logic should execute . 

*This post is locked for comments

  • Verified answer
    Faisal Fareed Profile Picture
    Faisal Fareed 10,794 User Group Leader on at
    RE: how to get date format using x++ from system date

    Please provide a screen shot of a report which is working fine and then for the report which is not showing any data.

    You probably need to check the table is there any record in it which will show to report. Are you using this date as a parameter on report?

  • Martin Dráb Profile Picture
    Martin Dráb 230,371 Most Valuable Professional on at
    RE: how to get date format using x++ from system date

    I'm sorry, you'll have to be more specific. There is nothing I can do for your based on this information. Start with explaining what you mean by "data is not coming properly". Then tell us about your customization.

  • Gautam Profile Picture
    Gautam 3,945 on at
    RE: how to get date format using x++ from system date

    Thanks Martin for getting back.

    The thing is that we have a customized report and thats working fine, but whenever we are changing the format of System date , then report data is not coming properly .

  • Martin Dráb Profile Picture
    Martin Dráb 230,371 Most Valuable Professional on at
    RE: how to get date format using x++ from system date

    What's your definition of "system date format"? AX doesn't internally works with dates as formatted strings - it uses a special data type. Dates are formatted to strings based date format configured in Windows, therefore two users with different regional settings can see the same date in different formats.

  • Suggested answer
    Muthusamy Profile Picture
    Muthusamy 4 on at
    RE: how to get date format using x++ from system date

    Hi Gautam,

    Function - systemDateGet() will provide you the system date

    Thanks,

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,642 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans