community postAL Developmentcommunity - not Microsoftreviewed - checked by Opus

Dynamics 365 Business Central: How to get the Month Name/Text from a date (Two ways)

Shows two ways to get a month name from a date in AL: Format with the Month Text date format (full or three-letter), and reading Period Name from the Date virtual table (ID 2000000007) for the month period. As an extra, the BC25 Date methods return the month number, not the name.

post Dynamics 365 Lab

Yun Zhu · 2026-01-16 · 533 words · about 2 min

"The Date virtual table (ID 2000000007) in Business Central gives you easy access to days, weeks, months, quarters, and years."

Key points

  • Format(date, 0, ‘’) returns the full month name; adding a length of 3 gives the short name.
  • The Date virtual table has the primary key Period Type plus Period Start; getting the Month row at the start of the month returns its Period Name.
  • The Date table can be opened in the browser by adding the table=2000000007 URL parameter.
  • The BC25 Date methods (for example .Month) give the month number only, which is simplest when the number is enough.

Quotes

  • “The Date virtual table (ID 2000000007) in Business Central gives you easy access to days, weeks, months, quarters, and years.” (Explains the core capability of the Date virtual table for date period operations)
  • “we can just use Format(Rec.“Posting Date”, 0, ‘’).” (Shows the simplest Format() syntax for extracting month names from dates)

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.

  • table “Date”

Not found in BC28-30: table “Date”.

Context

  • Features: Format() method, Date virtual table, Date/Time methods, Period Name field, Month Text format code
  • Versions: Business Central 2024 wave 2 (BC25)

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.