Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Format date in a report word layout

Posted on by Microsoft Employee

Greetings,

I have a question about dates in a report word layout. Example I have a field "Starting Date" and I add this field to my word report. But also, I have to add just a year of "Starting Date". So, my question is does I have to add a field StartingDateYear in my report or I just can display year of "Starting Date" directly in a word. 

Thanks for your help

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Format date in a report word layout

    Of course, I just want to check is it possible in word layout. I already do that in code.

    Thanks

  • ManishS Profile Picture
    ManishS 6,578 on at
    RE: Format date in a report word layout

    Did you try DATE2DMY in you code, not on layout.

  • Verified answer
    AJAnsari Profile Picture
    AJAnsari 5,754 on at
    RE: Format date in a report word layout

    You do not have the ability to format dates or do other advanced things like set conditional visibility on a field in Word.

    For this, you will either need to handle it in code in NAV, or use RDLC layout (requires the use of SQL Report Builder or Visual Studio).

    I hope this helps. If it does, please verify by clicking Yes next to “Did this answer your question?”

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans