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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Convert string include time zone to utcdatetime ax 2012

(0) ShareShare
ReportReport
Posted on by

Hi experts,

I try to convert string "2018-10-02T00:00:00+07:00" to utcdatetime

utcDateTime dateTime = DateTimeUtil::parse("2018-10-02T00:00:00+07:00");

But I get error:

7888.Screenshot_5F00_1.png

Any one help me?

Thanks all.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mea_ Profile Picture
    60,284 on at
    RE: Convert string include time zone to utcdatetime ax 2012

    You can do it using .Net:

        utcDateTime dateTime;
        
        boolean ok = System.DateTime::TryParse("2018-10-02T00:00:00+07:00", byref dateTime);
        
        if (ok)
        {
            info(queryValue(dateTime));
        }


  • Community Member Profile Picture
    on at
    RE: Convert string include time zone to utcdatetime ax 2012

    Hi ievgen,

    I tried and successfully.

    Thank you.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
Community Member Profile Picture

Community Member 2

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans