Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

change month language to spanish

(0) ShareShare
ReportReport
Posted on by 50

hi does anyone know how to do this? i've tried everything and have figured out how to do it yet i tried using calculated fields, the user date, document dates...

*This post is locked for comments

  • winthropdc Profile Picture
    winthropdc on at
    Re: change month language to spanish

    Hi Roberto

    It will take a few calculated (5) fields but it can be achieved.

    You will need to split the date into Day, Month and Year. You can use the DAY, MONTH, YEAR system-Defined functions to get these. 

    Infact, as we will need the Day and Year as strings you could use RW_DateToString() user defined function (system series) instead, parameters and format symbols below:

    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)

    You could use "DD-" and "-YYYY" as your format strings.

    Once you have the Month as an integer (using MONTH), you can use RW_Token() user defined function (system series) to convert the month into spanish words (either full names or short names). Parameters below:

    in string IN_string;   { String containing values separated by token character }
    in string IN_token;    { Token character used in String }
    in integer IN_position;  { Position of value to return }

    For example "Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec", ",", (c) Month

    Then the final calculated field can take the 3 strings and concatenate them.

    For more information on the user defined report writer functions look at the Report Writer programmer's guide in the Software Development Kit (SDK). The SDK can be installed from the Tools folder of CD 2 of the install CDs.

    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.Musgrave@online.microsoft.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. 

     

     

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,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans