Hello
In 4.0 using function format for datetime with 3rd parameter 9 returns.
it returns
2008-03-01T01:38:10Z
running the same code in 5.0 returns
2008-03-01T13:38:10Z
.
Notice the 13 instead of 01 for the hours.
evaluate(mytime, '9:38:10 AM');
evaluate(mydate, '3/1/2008');
message(FORMAT(CREATEDATETIME(mydate,mytime),0,9));
:bug:
Ahmed Rashed Amini
Independent Consultant/Developer
blog:
https://dynamicsuser.net/nav/b/ara3n
Comments
And try to just export Time - it will be shifted by timezone too leading to wrong time in the XML (of course when imported back, all is ok, but if external application will take that...).
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
What is a quick way to solve it. The function is used in a lot of places.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n