Globalizing ColdFusion - a need for dateformat masks
For a big global application that is currently being developed by my company Carlos Gallupa (http://carlosgallupa.com) I need the following...
Is there a component that can give me based on the used Locale of my application a correct mask/hint on the used dateformat?? We here in the Netherlands use the dateformat dd/mm/yyyy and if I use LSparsedatetime on this while setting te locale to "dutch (standard)" this works great... an vice versa for US dates. But here comes the problem!!!
When my Locale is set dynamicly to a certain Locale, my application does not know what the "mask/hint" of the Locale should be.. in other words "dd/mm" or "mm/dd".
Can someone point me to a good source for answering this question? The best thing would be something like this.
<cfset setLocale("dutch (standard)")>
<cfset stLocale= getlocale()>
#stLocale.name# translates to "dutch (standard)"
#stLocale.datemask# translates to "dd/mm/yyyy"