Function to update a DateField with a new Date

MSai
Member Posts: 1
Hey, i'm on a beginner Level
my task ist to update a Date Field with a new Date in the PurchaseLine. Therefore i need a variable, which replace the old date and set the new, or overwrite the current Date...

0
Answers
-
Please be more specific when asking questions.
Date is a datatype in NAV. Just declare a variable of type Date as you would declare one of type Integer or Boolean.
Then you can assign a value to the variable, or use the value of the variable just as with any variable of any kind.
There are funktions to construct a date, to get the current date (TODAY), to get the WORKDATE set in the client, to disect a date etc. e.g. get the month, get the day of the week ...
There is also a type Time and a type DateTime, which is a combination of a date and a time into one single value. And there are more functions to deal with those and to convert between any of these.1
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