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

Notifications

Announcements

No record found.

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,105 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
    211 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
    95,331 Super User 2025 Season 2 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans