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 :
Finance | Project Operations, Human Resources, ...
Answered

RW_DatetoString function does not appear to be working

(0) ShareShare
ReportReport
Posted on by 9,150

Hi

After finding different blogs on displaying dates in any format, I have attempted to use the RW_DatetoString function in the RM Statement on Blank Paper report in Dynamics GP 2018 with no luck.

This is the calculation (The FUNCTION SCRIPT (  is there, my window doesn't open up big enough to show it).

RW_5F00_DatetoString.png

And my result is literally mmddyyyy:

DateResult.png

I have tried with the date fields RM Statement Header Temp - Date, RM Statement Transaction Temp - Document Date, RM Open File - Document Date.  All with the same result.

What am I doing wrong?

Cheers

Heather

Categories:
I have the same question (0)
  • Verified answer
    Almas Mahfooz Profile Picture
    11,009 User Group Leader on at

    Try  like        

    DD-mmmm-YYYY

    or

    mmmm-DD-YYYY

    ddd                  = day of week as 3 letters

    dddd                = day of week in full

    N                      = day of year

    NN                    = day of year (padded)

    D                      = day of month

    DD                   = day of month (padded)

    M                     = month of year

    MM                   = month of year (padded)

    mmm                = month of year as 3 letters

    mmmm             = month of year in full

    YY                    = year of date (2 digits)

    YYYY               = year of date (4 digits)

  • Heather Roggeveen Profile Picture
    9,150 on at

    Hi

    I tried your suggestion with the same result.  So I thought, maybe I will just try DDMMYYYY (i.e. use capitals) - turns out, the case matters and that has done what I needed it to do.

    Thanks for the suggestion - that, combined with a fresh head made me try something different!

    Cheers

    Heather

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 590 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 349

#3
Diego Mancassola Profile Picture

Diego Mancassola 263

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans