Inconsistant Date Format

lgp
Member Posts: 77
Hi,
Our client has noticed that when the AP check prints, the check date prints as 07/25/2010, but the document date on the stub prints 7/25/2010. They would like the month to print as 2 digits in both places. I have tried several things to get the Document Date to print with 2 digits, including changing regional settings in windows, changing the format property in the RTC to mm/dd/yyyy (this resulted in 00/25/2010), removing the format property in RTC (which printed the date and time), and attempting to use the FORMAT(DocDate,<Month,2>/<Day,2>/<Year4> in the code, but none of these have worked. ](*,) Has anyone else had to make this change?
Thanks!
Our client has noticed that when the AP check prints, the check date prints as 07/25/2010, but the document date on the stub prints 7/25/2010. They would like the month to print as 2 digits in both places. I have tried several things to get the Document Date to print with 2 digits, including changing regional settings in windows, changing the format property in the RTC to mm/dd/yyyy (this resulted in 00/25/2010), removing the format property in RTC (which printed the date and time), and attempting to use the FORMAT(DocDate,<Month,2>/<Day,2>/<Year4> in the code, but none of these have worked. ](*,) Has anyone else had to make this change?
Thanks!
Leanne G. Paul
Business Applications/IT Advisor, Competitive Edge Services
Business Applications/IT Advisor, Competitive Edge Services
0
Answers
-
Instead of:
FORMAT(DocDate,<Month,2>/<Day,2>/<Year4>)
try:FORMAT(DocDate,0,'<Month,2>/<Day,2>/<Year4>')
The C/SIDE Reference Guide has information on all syntax like this. Click Help, C/SIDE Reference Guide, and enter 'FORMAT' into the search tab.0 -
0
-
DenSter wrote:
Actually, no, that was a different question regarding printing the date as text (i.e. October 25, 2010) vs. short date (10/25/10).Leanne G. Paul
Business Applications/IT Advisor, Competitive Edge Services0 -
deV.ch wrote:by the way: mm/dd/yyyy in RDLC layout doens't work because mm = minutes and not months, if you want to have the month you need a capital M: MM/dd/yy
Thanks so much - you have solved my problem!Leanne G. Paul
Business Applications/IT Advisor, Competitive Edge Services0
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
- 320 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