DayOfWeek

Stimulsoft Reports.Flex discussion
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

DayOfWeek

Post by hugo »

Seems that the function DayOfWeek is missing his implementation.
Would be nice to have it's support for several languages including EN, PT, PTBR.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: DayOfWeek

Post by HighAley »

Hello.

Please, send us translations of all months. Do you need an additional parameter which will allow to set case of first letter?

Thank you.
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Re: DayOfWeek

Post by hugo »

PT (starting on Monday):
Segunda-feira
Terça-feira
Quarta-feira
Quinta-feira
Sexta-feira
Sábado
Domingo

PT-BR (starting on Monday):
segunda-feira
terça-feira
quarta-feira
quinta-feira
sexta-feira
sábado
domingo

An extra parameter to set the case would be nice, yes.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: DayOfWeek

Post by HighAley »

Hello.

Could you explain how this extra parameter should work with both languages? Is it possible to start with lower case in PT language or in PT-BR only?

Thank you.
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Re: DayOfWeek

Post by hugo »

Hello,

The standard case for days of week for PT-PT is upper and for PT-BR is lower. It's the only difference.

However it's possible to have days of week in PT-PT text in lower-case (it's not so usual but it's also correct).
With PT-BR it's also possible to have upper if it's the start of a sentence.

I would say that PT-PT starts with upper by default and PT-BR with lower by default. An extra parameter will change the case of the default.
This extra parameter will be only an extra. It's not so important.

Another possibility would be to have only one function DayOfWeekPt that returns days of week in PT-PT and one extra parameter to put in lower case. I think that this also can solve the problem with the minium effort.

Regards,
Hugo.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: DayOfWeek

Post by HighAley »

Hello.

We have added next functions:

Code: Select all

DayName(DataSource.DateColumn, Culture)
DayName(DataSource.DateColumn, Culture, UpperCase)
Where culture could be "PT-PT" or "PT-BR" and third parameter is boolean.

Thank you.
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Re: DayOfWeek

Post by hugo »

Thank you.
This function will contribute to make my model layer simpler.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: DayOfWeek

Post by HighAley »

Hello.

Good. Let us know if you need any additional help.

Thank you.
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Re: DayOfWeek

Post by hugo »

Hello,

The current public build still don't support this so I guess will be available latter, right ?


Thank you,
Hugo.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: DayOfWeek

Post by HighAley »

Hello.

Sorry, due to technical reasons we didn't include this function i our previous prerelease build. It will be available in our next build on February 14.

Thank you.
Locked