web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

How can we add st/nd/rd/th for the date in business central

(0) ShareShare
ReportReport
Posted on by 130

I would like to print date  in format "(11th June 2022)" can we do by using the format function or any other function.   I am attaching the screenshot of my code by using the format function. how can we add st/nd/rd/th  for the date in business central.

Format2.PNG

I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,161 Moderator on at

    I am not sure exactly what your question is. But here is the documentation for the different formats available for different data types.

    docs.microsoft.com/.../devenv-format-property

  • Suggested answer
    Dallefeld Profile Picture
    225 User Group Leader on at

    None of the standard formats are going to give you what you are looking for. You are probably going to have to right code that reads the day of the month and add st to 1, nd to 2, rd to 3, th to 4 through 20, st to 21, nd to 22, rd to 23, th to 24 through 30 and st to 31.

  • Suggested answer
    YUN ZHU Profile Picture
    98,595 Super User 2026 Season 1 on at

    Hi, There are generally two ways to format date

    Format date in VS code.

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-format-property

    Format date in SSRS

    http://jackdonnell.com/?p=122

    If neither of these two can be achieved, you need to define a procedure in Codeunit yourself. In Japan, there are generally dedicated date formats, so this is very common.

    Hope this helps.

    Thanks.

    ZHU

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,822 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,136 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 956 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans