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...
Answered

How to change date format in pro form invoice report

(0) ShareShare
ReportReport
Posted on by 70

In my pro forma Invoice Report, Due Date field showing Date in the format like 3/21/2023 12:00:00. But I required to display the my due date field as March 21, 2023. How to do this?

In my VS Code, I added "Due Date" field from the Header as well as from the dataitem (Sales Header), and used the dataset in the word layout of pro forma invoice and updated the layout and still i cannot able to get my required format. where to change the format to get required format as March 21, 2023.

           
reportextension 50149 proformainvoicereportext extends "Standard Sales - Pro Forma Inv"
{
    WordLayout = './StandardSalesProFormaInv.docx';

    dataset
    {
        add(Header)
        {           
            column("DueDate"; "Due Date"{ }           
        }
        addfirst(Header)
        {
            dataitem("Sales Header"; "Sales Header")
            {
                column(Due_Date_; "Due Date") { }               
            }
}

    }
}
pastedimage1678430261764v1.png

  • Revathi.T Profile Picture
    70 on at
    RE: How to change date format in pro form invoice report

    Thank You Mohana Yadav. It works now.

  • Suggested answer
    Nitin Verma Profile Picture
    20,991 Moderator on at
    RE: How to change date format in pro form invoice report

    you can directly open the RDLC report designer and change the Textbox property as per below.

    pastedimage1678432234864v1.png

  • Verified answer
    Mohana Yadav Profile Picture
    45,317 Moderator on at
    RE: How to change date format in pro form invoice report

    Change it as below and try

    column(Due_Date_; Format("Due Date", 0, 4)) { }

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

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,860 Test role Public

#2
Ludwig Reinhard Profile Picture

Ludwig Reinhard 229,831 Microsoft Employee

#3
Martin Dráb Profile Picture

Martin Dráb 225,155 Moderator

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans