Stimulsoft Reports.Flex discussion
hugo
Posts: 359 Joined: Fri Mar 08, 2013 10:46 am
Post
by hugo » Wed Jan 08, 2014 12:43 am
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
Post
by HighAley » Thu Jan 09, 2014 7:53 am
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
Post
by hugo » Thu Jan 09, 2014 8:43 am
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
Post
by HighAley » Thu Jan 09, 2014 10:46 am
Hello.
Our next prerelease build will be available tomorrow.
Thank you.
hugo
Posts: 359 Joined: Fri Mar 08, 2013 10:46 am
Post
by hugo » Thu Jan 09, 2014 12:10 pm
Thanks again.
Andrew
Posts: 4107 Joined: Fri Jun 09, 2006 3:58 am
Post
by Andrew » Thu Jan 09, 2014 1:14 pm
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
Post
by hugo » Fri Jan 10, 2014 11:56 pm
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
Post
by HighAley » Sat Jan 11, 2014 11:28 am
Hello, Hugo.
Good.
Let us know if you need any additional help.
Thank you.