Skip to main content

Notifications

Microsoft Dynamics AX forum
Answered

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

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 . 

Categories:
  • 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 227,971 Super User 2024 Season 2 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 227,971 Super User 2024 Season 2 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,

Helpful resources

Quick Links

Dynamics 365 Community Update

Welcome to the inaugural Community Platform Update. As part of our commitment to…

Dynamics 365 Community Newsletter - August 2024

Catch up on the latest D365 Community news

Community Spotlight of the Month

Kudos to Mohana Yadav!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,115 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 227,971 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans