Hii Guys, can anyone help me how can i filter Date only from date and time in reports

Naresh307
Member Posts: 2
Thank you
0
Best Answer
-
The DT2Date function expects a DateTime value as input. The Depreciation Starting Date field is not a DateTime field, it is a Date field.
To see the definition of the field you are working with, you can either hover your mouse over it and it will show up in the tooltip, or you can put your cursor in the field and hit F12, which will open the source object
0
Answers
-
Please elaborate with what kinda of date (Add some code),or else you won't get any good answerFor help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.1
-
you can try
Setfilter("Your Date",'%1..%2',StartDate,EndDate);
1 -
date := DT2DATE("FA Depreciation Book"."Depreciation Starting Date");
im trying to write above code to extract date from date and time variable i.e Depreciation Start Date
here date is a local variable of type Date and FA Depreciation Book is the table.
but im getting fallowing error
0 -
Hi,
Just use EVALUATE(). And only if this does not work, then you do text manipulation.
Sample code...
DTVar is a datetime variable
DateVar is a date variableDTvar := CURRENTDATETIME; MESSAGE('Before...' + FORMAT(DTvar)); EVALUATE(DateVar, FORMAT(DTvar)); MESSAGE('After...' + FORMAT(DateVar));
0 -
The DT2Date function expects a DateTime value as input. The Depreciation Starting Date field is not a DateTime field, it is a Date field.
To see the definition of the field you are working with, you can either hover your mouse over it and it will show up in the tooltip, or you can put your cursor in the field and hit F12, which will open the source object
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