Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

DateTime format issue

Posted on by 105

Hello All,

Please help me out,

I am working on integration project, where I have to integrate nav with some third party application, that application completely runs with UTC time , so while calling any api if there is any datetime field in my request, till now I have converted my datetime field to utc time by writting this one line code FORMAT(DATETIME,0,9), 

my question is in response I'm receiving datatime value in utc time how to convert this time to my local time which is in cst timezone

can I make use of config file to overcome this but currently my nav application is integrated with couple of others application , changing config file should not effect them

please advice

thanks

*This post is locked for comments

  • Verified answer
    AlexDen Profile Picture
    AlexDen 90 on at
    RE: DateTime format issue

    EVALUATE(DateTime,'2018-07-06T02:47:31Z',9);

  • RE: DateTime format issue

    Hello AlexDen,

    Thanks for your reply can you tell one more thing. how to convert

    text = '2018-07-06T02:47:31Z' to nav datatime field

  • AlexDen Profile Picture
    AlexDen 90 on at
    RE: DateTime format issue

    Hello.

    Look at the function ConvertToUtcDateTime in 358cu.

    You can use the same approach.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans