web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

date format in report writer

(0) ShareShare
ReportReport
Posted on by 340

dear,

i have to change the date format in report witer, plz help me, how can i change it.

*This post is locked for comments

I have the same question (0)
  • Hossam Fathy Profile Picture
    2,611 on at
    Re: date format in report writer

     What format you want?

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,069 Most Valuable Professional on at
    Re: date format in report writer

    Use RW_DateToString() RW function.

    in date IN_Date;
    in string IN_Format;

    Format Syntax:-
    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)

    See here for more info:

    http://blogs.msdn.com/developingfordynamicsgp/archive/2008/09/01/using-the-built-in-report-writer-functions.aspx

    David Musgrave [MSFT]
    Escalation Engineer - Microsoft Dynamics GP
    Microsoft Dynamics Support - Asia Pacific

    Microsoft Dynamics (formerly Microsoft Business Solutions)
    http://www.microsoft.com/Dynamics

    mailto:David dot Musgrave at microsoft dot com
    http://blogs.msdn.com/DevelopingForDynamicsGP

    Any views contained within are my personal views and not necessarily Microsoft policy.
    This posting is provided "AS IS" with no warranties, and confers no rights. 

     

  • Muhammad Asif Profile Picture
    340 on at
    Re: Re: date format in report writer

    Thank u for ur response

    A report was created in report writer in which document date format is MM/dd/yyyy. The required format is

    "dd-MMM-yyyy" i,e. 12-Apr-2010.

     

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    14,069 Most Valuable Professional on at
    Re: Re: Re: date format in report writer

    Just use "DD-mmm-YYYY" as the format string in the RW function.

    Please note the format of the date is controlled by the system's regional settings.  Change away from US settings if you want something other than mm/dd/yyyy.

    David

    David Musgrave [MSFT]
    Escalation Engineer - Microsoft Dynamics GP
    Microsoft Dynamics Support - Asia Pacific

    Microsoft Dynamics (formerly Microsoft Business Solutions)
    http://www.microsoft.com/Dynamics

    mailto:David dot Musgrave at microsoft dot com
    http://blogs.msdn.com/DevelopingForDynamicsGP

    Any views contained within are my personal views and not necessarily Microsoft policy.
    This posting is provided "AS IS" with no warranties, and confers no rights. 

  • Muhammad Asif Profile Picture
    340 on at
    Re: Re: Re: Re: date format in report writer
    Solution, Date format cab b changed by creating a calculated field that calls RW_DateToString user-defined function and passing in the date field.  Format "DD-mmm-YY  should be added using Constant. Any formats you can use as well, plz let me know if you have additional questions on this. Its beauty is, it does not depend on regional setting of operation system. Muhammad Asif

     

  • Community Member Profile Picture
    on at
    Re: date format in report writer

    Hi Muhammad, you can view my blog post on this very topic here: http://dynamicsgp.wordpress.com/2009/06/08/international-date-formats-in-report-writer/

    Hope this helps.

  • Gaurav Nandgaye Profile Picture
    385 on at
    Re: Re: date format in report writer

    If we require to print on cheques where date is to be put as

    | D | D | M | M | Y | Y | Y | Y |.

    Then how do we do that,

  • Community Member Profile Picture
    on at
    Re: Re: Re: date format in report writer

    There is a function where you can convert the elements of the date to a string. I.e. you can get the first digit of the date on its own, the second digit on its own etc. If you use this function 8 times to break up your date into 8 different fields, you can put them on your report with the lines in between?

    I think it is called RW Date String or something like that. (Don´t have access to GP at the moment to check).

    Hope this points you in the right direction.

  • Gaurav Nandgaye Profile Picture
    385 on at
    Re: Re: Re: Re: date format in report writer

    Using rw_datetostring am able to format the MMDDYYYY, but cannot split it.

    Is there any function to add blank space in between string , for example to print "string" as "s t r i n g"

     

  • Verified answer
    Sagi88 Profile Picture
    2,250 on at
    Re: Re: Re: Re: Re: date format in report writer

    Hi Gaurav

    Once the date field converted to string and placed on your page layout double click it to go to the properties.

    Click on the Format expansion button (...) and create a new format ex: My_Date_Format.

    In the Format String box enter X X X X X X X X (Must be in caps) and insert. These are the character holders.

    Your date format should be fine.

    Hope this helps

     

     

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans