x++


What is the function to get the system date and current date in Dynamics AX?


What are the function calls to get the System Date and Current Date using X++ in Microsoft Dynamics AX?
Use the static methods within class DateTimeUtil:
getSystemDateTime
utcNow
Both return UTC date and times, but will be converted to local time on display.
See Best Practice.
systemDateGet() and Today()
http://msdn.microsoft.com/en-us/library/aa672952.aspx
In Dynamics Ax < 2009
Current Date:
Today()
The system date provided by the today function should be used only where the actual machine date is needed.
System Date:
SystemDateGet()
Most application logic should use the system function systemDateGet, which holds the logic date of the system.
SystemDateGet() is the command to get current date in a display method.
today() method, which might return a different date (it
returns the machine date, not the date from Dynamics AX).

Related Links

AlwaysOnTop property not behaving properly
Boolean AND logic in Microsoft Dynamics AX 2012 AIF QueryCriteria
Table: PrintMgmtSettings Field: Printjobsettings(Blob)
What happened to the hrplimittablerelationship table in ax-2012-r2?
Why is my changes ignored to releaseupdate scripts in dynamics ax 2012 r2
What is “old sys” exactly and why would I receive errors in 2012 because of a missing Macro?
How to filter records in line grid based on selected record in header grid?
Dynamic linking gets cleared when inserting new records
Box::info showing “refreshEx”
How to filter lookup values on a dialogfield in Report Dialog based on another dialogfield in AX 2012 AOT reports?
Adding scrollbar to a Group in AX 2012 form
Table query inconsistent
AX2012 Sales Order Creation through AX Classes
How can I loop over Tables which contain specific characters in their AOT name and delete the data?
Having button that runs code, but doesn't submit data to (or validates against) table
Where are Duties (table name) stored in AX?

Categories

HOME
microsoftgraph
fpga
sh
solver
spring-data-mongodb
permissions
retrofit2
nfs
augeas
angular-dart
speech-synthesis
http-post
entitymanager
package.json
dreamweaver
vuejs
template-engine
wolframalpha
gmm
systemtime
postscript
outliers
tpm
paperjs
comparable
jaws
magento-1.8
scrollview
userdefaults
powershell-ise
paragraph
database-comparison
pop3
jwplayer6
apic
playframework-2.1
modernizr
loading
android-softkeyboard
linqpad
stylecop
sonarlint-eclipse
jquery-ui-draggable
convex-optimization
custom-font
qtranslate
yii2-user
spring-data-couchbase
payload
reachability
freepbx
createprocess
nullable
piracy-prevention
user-management
dronekit-android
graphics2d
entity-framework-4.3
document-repository
mruby
metatrader5
grails-domain-class
terminate
qscrollarea
hibernate-entitymanager
rolify
abstract-data-type
insert-id
bjyauthorize
panda3d
listitem
garbage
isa-swizzling
hibernateexception
procedures
denied
google-ajax-api
uipagecontrol
dot-emacs
httpcookie
online-storage

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App