DateToStrPt and DateToStrPtBr

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

DateToStrPt and DateToStrPtBr

Post by hugo »

I share with you two new missing functions to convert a date to the string representation in both Portuguese-Portuguese (European) and Portuguese-Brazilian (It would be nice to have these functions available in the next build, preventing to add additional fields just to format before handing the report):

Code: Select all

private function DateToStrPtBr(value:Date):String
{
	return DateToStrPt(value).toLowerCase();
}

private function DateToStrPt(value:Date):String
{
	var month:String = null;
	switch (value.month)
	{
		case 0:
			month = "Janeiro";
			break;
		case 1:
			month = "Fevereiro";
			break;
		case 2:
			month = "Março";
			break;
		case 3:
			month = "Abril";
			break;
		case 4:
			month = "Maio";
			break;
		case 5:
			month = "Junho";
			break;
		case 6:
			month = "Julho";
			break;
		case 7:
			month = "Agosto";
			break;
		case 8:
			month = "Setembro";
			break;
		case 9:
			month = "Outubro";
			break;
		case 10:
			month = "Novembro";
			break;
		default:
			month = "Dezembro";
			break;
	}
	return value.date + " de " + month + " de " + value.fullYear;
}
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: DateToStrPt and DateToStrPtBr

Post by HighAley »

Hello.

We have added these functions. They will be available in our next prerelease build.

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

Re: DateToStrPt and DateToStrPtBr

Post by hugo »

Thank you very much. Btw, when will be the next release date ?
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: DateToStrPt and DateToStrPtBr

Post by HighAley »

Hello.

Our next prerelease build will be available tomorrow.

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

Re: DateToStrPt and DateToStrPtBr

Post by hugo »

Thanks again.
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

Re: DateToStrPt and DateToStrPtBr

Post by Andrew »

Dear Hugo,

Thank you very much for the functions you sent!
We highly appreciate your efforts to make our product more powerful.

Please let us know whether everything is Ok with the functions in the prerelease build.
Thank you.
hugo
Posts: 359
Joined: Fri Mar 08, 2013 10:46 am

Re: DateToStrPt and DateToStrPtBr

Post by hugo »

Hello,

I already tested both functions and they seem working well (btw they also don't appear in the functions list - but for me it's not important aspect).

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

Re: DateToStrPt and DateToStrPtBr

Post by HighAley »

Hello, Hugo.

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

Thank you.
Locked