Format(datetime,0,9)

ara3n
Member Posts: 9,258
Hello
In 4.0 using function format for datetime with 3rd parameter 9 returns.
it returns
running the same code in 5.0 returns
Notice the 13 instead of 01 for the hours.
:bug:
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:
0
Comments
-
There are more :bug: which will be solved in some hotfix around this "XML DataTime standard". Try to export some data with DateTime in XML format 9 through dataport and try to import it back. You cannot because the syntax is not recognized... ;-)
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...).0 -
The client can't upgrade the exe right now.
What is a quick way to solve it. The function is used in a lot of places.0 -
This seems like good example for MSFT support...0
-
I have found a workaround.
FORMAT(myDate,0,9) + 'T' +FORMAT(mytime,0,9)
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 321 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions