Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

RW_SysDate

(0) ShareShare
ReportReport
Posted on by 2,046

HI folks

I want to format the sys date field that is on the packing slip and picking ticket to be month in three letters.

I have the RW_Datetostring function that will do the formatting for me, but I need the system date

I have found the RW_SysDate function but am at a loss as to its parameters.

looking at:

http://msdynamicstips.com/2014/06/10/rw-functions-global-scripts/

and

http://www.sanjaykumar.us/index.php/dynamics-gp-report-writer-global-functions-part-3-date-time-functions/

what the heck does this mean:

Parameters:

in integer IN_mode. non-zero = SQL Server Date

can someone give me an example of getting the sys date function to work so I can run it through the formatter function.

thanks!

*This post is locked for comments

  • iruser2 Profile Picture
    iruser2 2,046 on at
    RE: RW_SysDate

    perfect - the placement of that 0 makes a huge difference I had it outside the brackets.

  • Verified answer
    DinB Profile Picture
    DinB 3,812 on at
    RE: RW_SysDate

    Try following:

    Create first Calculated Field named "MySysDate"
    Result Type: Date
    Expression Type: Calculated
    Expression: FUNCTION_SCRIPT(RW_SysDate 0)

    Parameter: 0 means system date in your PC
    non zero means system date in SQL Server machine

    Create Second Calculated Field named "MySysDateStr"
    Result Type: String
    Expresson Type: Calculated
    Expression: FUNCTION_SCRIPT(RW_DateToString MySysDate "mmm, DD YYYY")

    Add the "MySysDateStr" field to the report.

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

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans