{"title":"System.Today() Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/system/system-today-method/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/system/system-today-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/system/system-today-method","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Gets the current date set in the operating system.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Syntax","slug":"syntax","at":111,"chars":186},{"level":2,"title":"Return Value","slug":"return-value","at":297,"chars":50},{"level":2,"title":"Remarks","slug":"remarks","at":347,"chars":721},{"level":2,"title":"Example","slug":"example","at":1068,"chars":237},{"level":2,"title":"Related information","slug":"related-information","at":1305,"chars":134}],"text":"> Version: _Available or changed with runtime version 1.0._\nGets the current date set in the operating system.\n## Syntax\n```al\nDate :=   System.Today()\n```\n> NOTE\n> This method can be invoked using property access syntax.\n> NOTE\n> This method can be invoked without specifying the data type name.\n## Return Value\nDate\nType: ../date/date-data-type\n## Remarks\nThe date that is returned is different for the Business Central Web client and Dynamics NAV Client connected to Business Central.\nFor the Web client, the day is determined by the time zone that is set under My Settings in the client. The very first time a user signs in, the system automatically determines the time zone based on the user's browser/computer.\nFor the Dynamics NAV Client connected to Business Central, Today returns the current day of the computer that is running the client, as determined by the date and time settings of the operating system.\nYou can only use the Today method to retrieve the current date from the operating system. You cannot use it to set the date in the operating system.\n## Example\nThis example shows how to use the Today method.\n```al\nvar\n    Text000: Label 'The current date is: %1';\nbegin\n    Message(Text000, Today);\nend;\n```\nThe message window could display the following:\nThe current date is: 05/27/08\n## Related information\nsystem-data-type\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}