Hi there.....
After searching for an answer to this question, I could not find anything....my apologies if I missed something.
Working for a Navision end user, a company which employs people of numerous nationalities, we find that the computer clients have different language settings. As a result, there are the following date possibilities:
Chinese format: 05-08-10 = 10th August 2005
Euro format: 10/08/05 = 10th August 2005
USA format: 08/10/05 = 10th August 2005
You can imagine that this can cause quite a lot of confusion, especially on reports and data exports, when people may end up using different shared computers with different language settings.
Is there standard function or any other way that these dates can always be translated into a format that cannot be misunderstood, eg 10th August 2005, for all reports and data exports to text and csv files?
Thanks again in advance for your help.
Robbiex
0
Comments
Strange that u have never noticed the standard reports in Navision. All of them have date on the right top of the page where it shows the USERID and the Page No.
See the Format used to show the Current System Date there.
FORMAT(TODAY,0,4)
when u use this, u see something like 26 August 2005.
Check out other options for Date formats too in help. This works well for Reports, but for dataports, I am not sure whether this solution would work or not (while doing an import).
Regards,
NVG
Anyway, this worked in 2.6, so I imagine it still does in 4.0
RIS Plus, LLC
http://www.cl.cam.ac.uk/~mgk25/iso-time.html
Navision format expression :
<Year4>-<Month,2>-<Day,2>
( can directly be filled in the format property of the dataport field)
In the textfiles the hyphens sometimes are ommitted (YYYYMMDD)
<Year4><Month,2><Day,2>
You shouldn't have to be concerned about programming the dates to be displayed at all. The windows settings should do the trick.
RIS Plus, LLC
It's not to make the normal user unhappy, but to make programmers happy in enabling to avoid date conversion errors which tend to come up all the time. The only problem with international standards is that they have to be used internationally.
That info was just what I needed.
Have a great day!