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

How do I get the caller Form's name in the Insert() of a table in AX 2012?
How to lookup into another table using EDT AX 2012
Set a Date Value to a Date Field in AX2012
Determine if a job is running in X++ code
Dynamics AX 2012 parsing Int32 to table field integer
Cancel Sales order packing slip through x++
Transferring open account records between customers
How to make sure that a form is only opened once?
Extend system menu in Dynamics AX 2012?
How to show selected items of certain table on the different table in Dynamics AX 2012?
AllowEdit doesn't work properly in Dynamics AX
AX 2012 how to set args record datasource in X++
Clients seem to be running old (buggy) code after XPO project import
Number sequence AX 2012
SSRS MS words report with page break
How can you get a detailed error descriptions in Dynamics AX?

Categories

HOME
developer-tools
codenvy
webdriver
datastore
pclxl
entity-framework-core
iis-6
frontend
opengl-3
computer-science
performancepoint
project
drop-down-menu
distribution
plist
jsonpath
php-5.6
spring-social
nancy
gruntfile
alpacajs
asp.net-mvc-viewmodel
jersey-1.0
symfony-console
enterprise-miner
topology
inno-download-plugin
roslyn
visual-studio-extensions
hta
tosca
displaytag
perlbrew
surveymonkey
underscore.js
angular-translate
gp
magento-1.8
constexpr
boost-asio
sharding
sql-delete
video-capture
apiary.io
lint
release
amazon-ses
connection-pool
protein-database
recurrent-neural-network
gdata
css-position
demo
android-ibeacon
movilizer
show-hide
apache-directory
mesosphere
geotiff
google-cse
oracleclient
avx
cmp
rxtx
filenet
node-request
webjars
mta
nss
project-organization
gcloud-ruby
uiactionsheet
asyncdisplaykit
jbase
inf
linklabel
opl
oracle-spatial
sony-lifelog-api
eoferror
git-ftp
dot.js
mmwormhole
variadic-templates
sql-scripts
jama
raygun
jqmodal
reflector
tinyxml
radiant
decoupling
kendo-dataviz
scringo
ui-select2
route-provider
joomla-template
cascadingdropdown
nokia-s40
appjs
cross-database
update-statement
webdev.webserver
lr
appledoc
cruisecontrol.rb
easyb
web-garden
cldc
localizable.strings
wcf-proxy

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