Dynamics 365 Business Central Blog Series: Date and time handling
This blog series covers date, time, and datetime handling in Business Central AL development, including functions for calculating special dates, type conversions, working with durations, timezone handling, and new methods in recent releases.

post Dynamics 365 Lab
Key points
- AL provides functions to retrieve special dates like today, yesterday, tomorrow, and first/last days of periods
- Date, time, and datetime types can be converted between each other and to text using various methods
- Duration data type can be manipulated and formatted for different output requirements
- Timezone conversions between UTC and local time require specific AL functions to handle correctly
- Recent releases (BC25, BC26, BC27) introduced new date/time methods and features like week numbers in date picker
AL objects mentioned
As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.
- other “Date virtual table”
Context
- Features: Date and time functions, DateTime conversion, Duration data type, Date-Time dialog, Date formula testing, Week numbers in date picker, ToText method, Timezone offset handling
- Versions: BC23, BC24, BC25, BC26, BC27
Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.