Problem with format Time

-matrix-
Member Posts: 103
Hi Guys!!
I'm working with a field type TIME in report RTC, in Classic Client Works Fine but
in the RTC The textbox show Date and Time.
Do you know any method to show only time with this format 'hh.mm.ss'?
Thanks
I'm working with a field type TIME in report RTC, in Classic Client Works Fine but
in the RTC The textbox show Date and Time.
Do you know any method to show only time with this format 'hh.mm.ss'?
Thanks
0
Comments
-
Hi Matteo!
Try to use this VBScript function:= Right(DateTimeField.Value, 8)
It's a workaorund but works~Rik~
It works as expected... More or Less...0 -
Thanks Troubles in Paradise!
It works as Expected0 -
Hi Folks
I am facing almost the same issue with a Date field comming from excel. In NAV clasic SQL is importing fine, however I am getting in RTC '10/10/11 12:00 AM' is not a valid date.
My code is simple: (StartDate is a Date Global Var)
EVALUATE(StartDate,ExcelBuf."Cell Value as Text");
PurchasePrice.VALIDATE("Starting Date",StartDate);
BTW if I want to use the Format Function in the line
EVALUATE(StartDate,FORMAT(StartDate,0,'<Month,2><Day,2><Year><Closing>'));
I am getting an error ..."An Invalid field or attribute has been specified for the 'Format' property.
Where you add your code (= right...)? Or who have any other solution?
ThanksCarlos Garcia0 -
Did you try?
PurchasePrice.VALIDATE("Starting Date",Format(StartDate));
0 -
elflacodemiami wrote:Hi Folks
I am facing almost the same issue with a Date field comming from excel. In NAV clasic SQL is importing fine, however I am getting in RTC '10/10/11 12:00 AM' is not a valid date.
My code is simple: (StartDate is a Date Global Var)
EVALUATE(StartDate,ExcelBuf."Cell Value as Text");
PurchasePrice.VALIDATE("Starting Date",StartDate);
BTW if I want to use the Format Function in the line
EVALUATE(StartDate,FORMAT(StartDate,0,'<Month,2><Day,2><Year><Closing>'));
I am getting an error ..."An Invalid field or attribute has been specified for the 'Format' property.
Where you add your code (= right...)? Or who have any other solution?
Thanks
the code with right is placed in the textbox where you want to show the date in the Report Layout.
However do you need only the date or also the hour?~Rik~
It works as expected... More or Less...0 -
Hi All,
To Get date in the required Format Open RDLC Layout and select the field for which you want to change the format, Rightclick --> properties --> Format---> Click assist edit button near Format Code--> It opens choose Format--->Select Date-->it will list three formats in that select format u need.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
- 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