Different languages

I have an Dutch application with reports in different languages NL D ENG. The dates are DD MM YYYY by default. Now I want to display the days and months in the correct language in the view. Example NL Monday, D Montag, ENG Monday. How can I achieve this in FastReport?

In Delphi i have :

function DagvdweekENG(Value TDateTime): string;

const Days array[1..7] of string = ('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');

begin

Result = Days[DayofWeek(Value)];

End;

Is this also possible in FastReport? Or is there another solution

Comments

  • Use

    var

     Months: array[1..12] of string;

     Days: array[1..7] of string;

    begin

     Months[1] := 'January';

     Months[2] := 'February';

     Months[3] := 'March';

     Months[4] := 'April';

     Months[5] := 'May';

     Months[6] := 'June';

     Months[7] := 'July';

     Months[8] := 'August';

     Months[9] := 'September';

     Months[10] := 'October';

     Months[11] := 'November';

     Months[12] := 'December';


     Days[1] := 'Su';

     Days[2] := 'Mo';

     Days[3] := 'Tu';

     Days[4] := 'We';

     Days[5] := 'Th';

     Days[6] := 'Fr';

     Days[7] := 'Sa';

    end.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.