hi i need a function DateToStrEs

Stimulsoft Reports.NET discussion
Post Reply
miguel
Posts: 14
Joined: Tue Apr 21, 2009 10:32 am
Location: sinaloa

hi i need a function DateToStrEs

Post by miguel »

hi i need a function DateToStr for Spanish. and the result makes me in English what I need so 01/01/2011 the result would
01 enero del 2011
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

hi i need a function DateToStrEs

Post by Andrew »

Hello,

We do not have ready-made methods of translation into Spanish. If you send a ready method, we will insert it in the designer.

Thank you.
J_S
Posts: 49
Joined: Mon Sep 22, 2008 3:10 am
Location: Netherlands

hi i need a function DateToStrEs

Post by J_S »

Why not just create a function DatetToStr(DateTime date, string cultureName)

Then get the culture by CultureInfo.GetCultureInfo(cultureName), and retreive localized names from the culture object. This way you don't get a very long list with all culture specific functions like DateToStrEN DateToStrEsp, DateToStrPl etc etc

Regards

PS If you are going to implement this, don't forget to implement it also in the web designer :grinder:
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

hi i need a function DateToStrEs

Post by Andrew »

Hello,

In principle it is possible to make such a function in the .Net/.Wpf.
But we need to ensure compatibility for all versions of our product, and in Silverlight and Flex it is impossible to get all the necessary data from the system.
Also in this case, we are dependent on the system functions, and, as practice shows, they do not always provide correct results.

So we try to add only the features, which code does not depend on system functions, and, accordingly, will work the same on all systems.

If you send a ready method, we will insert it in the designer.

Thank you.
J_S
Posts: 49
Joined: Mon Sep 22, 2008 3:10 am
Location: Netherlands

hi i need a function DateToStrEs

Post by J_S »

Andrew,

Personally I don't neet such a feature, but it seemed much easier for the end user because you don't get a long list of functions.

As far as I can see all necessary functions for such a function are available in the Portable Class Library (targets all .net platforms, also silverlight).

Just a hint, nothing more ;)

Regards
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

hi i need a function DateToStrEs

Post by Andrew »

Hello,

Thank you very much for your intention to help us! :biggrin:
Post Reply