Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Answered

Today is Thursday and systemDateGet() it is showing Saturday.

Posted on by 502

Hi All,

Today is Thursday and systemDateGet() it is showing Saturday. How can we fix this?

Day is not coming correct.

MicrosoftTeams_2D00_image-_2800_25_2900_.png

Date is coming correct.

   MicrosoftTeams_2D00_image-_2800_26_2900_.png

Please help in this.

  • Verified answer
    faiz7049 Profile Picture
    faiz7049 1,641 on at
    RE: Today is Thursday and systemDateGet() it is showing Saturday.

    Hi Siddhant,

    You are using dayofMth. instead of this use below on.

    error(strFmt("%1",dayName(dayOfWk(systemDateGet()))));

  • Verified answer
    nmaenpaa Profile Picture
    nmaenpaa 101,148 on at
    RE: Today is Thursday and systemDateGet() it is showing Saturday.

    Did you notice that you are passing "dayOfMonth" to the "dayName" function? So you're passing "27" into the function and you will experience surprising result. Try to pass "dayOfWk" to the "dayName" function.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,914 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,549 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans