{"title":"System.Time() Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/system/system-time-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-time-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-time-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 time from the operating system.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Syntax","slug":"syntax","at":109,"chars":185},{"level":2,"title":"Return Value","slug":"return-value","at":294,"chars":50},{"level":2,"title":"Remarks","slug":"remarks","at":344,"chars":689},{"level":2,"title":"Example","slug":"example","at":1033,"chars":282},{"level":2,"title":"Related information","slug":"related-information","at":1315,"chars":134}],"text":"> Version: _Available or changed with runtime version 1.0._\nGets the current time from the operating system.\n## Syntax\n```al\nTime :=   System.Time()\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\nTime\nType: ../time/time-data-type\n## Remarks\nThe time that is returned is different for the Business Central Web client and Dynamics NAV Client connected to Business Central. For the Web client, the time is determined by the Regional Setting that is set under MySetting in the client. The very first time a user signs in, the system automatically determines the Regional Setting based on the user's browser/computer. For the Windows client, Time 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 Time method to retrieve the time from the operating system. You cannot use it to set the time in the operating system.\n## Example\n```al\nvar\n    Text000: Label 'The current system time is %1.';\nbegin\n    Message(Text000, Time);\nend;\n```\nOn a computer that has the regional format set to English \\(United States\\), the message window could display the following:\nThe current system time is 11:15:46 AM.\n## Related information\nsystem-data-type\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}