Page 1 of 1
hi i need a function DateToStrEs
Posted: Mon Mar 14, 2011 1:01 am
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
hi i need a function DateToStrEs
Posted: Tue Mar 15, 2011 6:20 am
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.
hi i need a function DateToStrEs
Posted: Wed Mar 23, 2011 8:50 am
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:
hi i need a function DateToStrEs
Posted: Thu Mar 24, 2011 7:03 am
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.
hi i need a function DateToStrEs
Posted: Thu Mar 24, 2011 10:02 am
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
hi i need a function DateToStrEs
Posted: Fri Mar 25, 2011 1:10 am
by Andrew
Hello,
Thank you very much for your intention to help us! :biggrin: