Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP forum
Answered

RW_DatetoString function does not appear to be working

Posted on by 9,142

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,142 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 10,996 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

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... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Product updates

Dynamics 365 release plans