Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Formatting date on report

(0) ShareShare
ReportReport
Posted on by 155
Hello.
My reports by default print the dates as 11. January 2024
I want the format of the dates to be 11.01.2024.
This includes all the default date fields especially in the Sales Invoice, Purchase Order, and Sales Order report, but I would like this to be the default for all reports. 
How can I achieve this?
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 76,221 Super User 2024 Season 2 on at
    Formatting date on report
    Hi, as standard this is based on country and region settings, you can try to change the settings below.
     
    As for what Shrey mentioned, this is for developers and needs to be defined in code.
     
    Hope this helps.
    Thanks.
    ZHU
  • Hagru Profile Picture
    Hagru 155 on at
    Formatting date on report
    Where would I add that code in case?
    I do have reportextensions for the tables I mentioned, but I am not sure where to add those lines in case.
    Also, is there a way to set this as the default for every report, so that I don't have to make x amount of report extensions?
  • Suggested answer
    Shrey Chauhan Profile Picture
    Shrey Chauhan 271 on at
    Formatting date on report
    Hello,

    You can use this following code to get this 11.01.2024 date format in report  :

    1. Rec.Date := format(Rec.Date, 0, '<Day,2>/<Month,2>/<Year4>');
    2. Rec.Date :=Format(Rec.Date,40, '<Standard Format,1>')
    Hope this help to solve your problem.
    May other expert's give you better solution.

    Thank you, 
    Shrey Chauhan

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,904 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,605 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans