Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

RW_DatetoString function does not appear to be working

(0) ShareShare
ReportReport
Posted on by 9,144

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:
  • Heather Roggeveen Profile Picture
    Heather Roggeveen 9,144 on at
    RE: RW_DatetoString function does not appear to be working

    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

  • Verified answer
    Almas Mahfooz Profile Picture
    Almas Mahfooz 11,004 User Group Leader on at
    RE: RW_DatetoString function does not appear to be working

    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)

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,791 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,488 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans