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

RW_DatetoString function does not appear to be working

(0) ShareShare
ReportReport
Posted on by 9,146

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,146 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

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

#1
Martin Dráb Profile Picture

Martin Dráb 544 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans