how to always get 4 digit year date format?
aigarslapins
Member Posts: 3
What I found about date formating is this:
"Navision support 2 digits year format from year 1930 to 2029. If you enter a number from 30 to 99 in the year portion of a date, Navision will interprete it as 19XX. If you enter the number from 00 to 29, Navision will interprete it as 20XX."
My problem is, that there must always be 4 digit date format. One solution is that I can change in Regional Settings 2 digit year period so that it doesn't overlap with used dates, but does anyone know some other solution?
"Navision support 2 digits year format from year 1930 to 2029. If you enter a number from 30 to 99 in the year portion of a date, Navision will interprete it as 19XX. If you enter the number from 00 to 29, Navision will interprete it as 20XX."
My problem is, that there must always be 4 digit date format. One solution is that I can change in Regional Settings 2 digit year period so that it doesn't overlap with used dates, but does anyone know some other solution?
0
Comments
-
why do you need it?
Internall, NAV stored it with 4 digits. To display it, you have to change the regional settings.
Set it up to the date format yyyy-MM-dd in regional settings. Also take a look to the frame "Calendar" on register Date.
Don't forgett, that these change is for all applications on this computer.
So. a global override in Navision doesn't exist.
If you doesn't wan't to change the reg. settings, you can only change in NAV the Format property of the texbox
from <Undefined> to <Day,2>.<Month,2>.<Year4>.
But this to do on all forms where a date is defined is a hard job ;-)
So, maybe you need it only on the most significant forms where a wrong date will be entered ...
RegardsDo you make it right, it works too!0 -
Thank You for the reply!
I need it because one of my clients desperetly insist on seeing 4 digit year.
I knew about the Regional Settings, so I have on it "dd.MM.yyyy" set but it appears in two digits because of the Calendar which is set to 1930-2029 and all dates are within that period.
So my question was, is there another solution not involving these Regional Settings, and You answered that there is none. So I will try to shift the Calendar period. Thank You!0 -
aigarslapins wrote:So my question was, is there another solution not involving these Regional Settings, and You answered that there is none.garak wrote:If you doesn't wan't to change the reg. settings, you can only change in NAV the Format property of the texbox
from <Undefined> to <Day,2>.<Month,2>.<Year4>.
But this to do on all forms where a date is defined is a hard job ;-)
So, maybe you need it only on the most significant forms where a wrong date will be entered ...0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 329 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