Page 1 of 1

DateToStrPt and DateToStrPtBr

Posted: Wed Jan 08, 2014 12:43 am
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;
}

Re: DateToStrPt and DateToStrPtBr

Posted: Thu Jan 09, 2014 7:53 am
by HighAley
Hello.

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

Thank you.

Re: DateToStrPt and DateToStrPtBr

Posted: Thu Jan 09, 2014 8:43 am
by hugo
Thank you very much. Btw, when will be the next release date ?

Re: DateToStrPt and DateToStrPtBr

Posted: Thu Jan 09, 2014 10:46 am
by HighAley
Hello.

Our next prerelease build will be available tomorrow.

Thank you.

Re: DateToStrPt and DateToStrPtBr

Posted: Thu Jan 09, 2014 12:10 pm
by hugo
Thanks again.

Re: DateToStrPt and DateToStrPtBr

Posted: Thu Jan 09, 2014 1:14 pm
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.

Re: DateToStrPt and DateToStrPtBr

Posted: Fri Jan 10, 2014 11:56 pm
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.

Re: DateToStrPt and DateToStrPtBr

Posted: Sat Jan 11, 2014 11:28 am
by HighAley
Hello, Hugo.

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

Thank you.