Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
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
    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
    233,025 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
    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
    233,025 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
    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,283 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,025 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans