web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

delay date time save

(0) ShareShare
ReportReport
Posted on by

I have created date time in sales table for ax 09/02/2018  and when I select this date in job I found 08/02/2018  any help for that

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    the sales order hours 01:30:00 am

    and in job 11:30:00

  • Suggested answer
    Mea_ Profile Picture
    60,286 on at

    Ax stores dates in UTC and show them in user's time zone, thats why you see the difference. You need to apply time zone in you job when you comparing dates, please read for details [View:https://technet.microsoft.com/en-us/library/gg231389.aspx]

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

    Hi,

    utcDateTime calculation depends on timezone and its relevant offset. Please use below code, I useduserPreferredTimeZone for calculating offset. Hope this works for you.

    static void AXC_UTCDateTime(Args _args)
    {
        SalesTable salesTable;
        utcDateTime myDateTime;
        Timezone  myTimeZone = DateTimeUtil::getUserPreferredTimeZone();
        
        select firstOnly SalesTable;
        myDateTime = SalesTable.createdDateTime;
        myDateTime = DateTimeUtil::applyTimeZoneOffset(myDateTime, myTimeZone);
        
        info(strFmt("%1", myDateTime));
    }


  • Community Member Profile Picture
    on at

    thank you Chaitanya Golla

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 16

#2
GiacomoRovai Profile Picture

GiacomoRovai 4

#3
Douglas Noel Profile Picture

Douglas Noel 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans