StringToFormatted Method
The StringToFormatted method adds formatting characters to a string. It returns a formatted string. It uses the following syntax:
StringToFormatted(type,value,format)
The StringToFormatted method uses the same arguments that the FormattedToString method uses. For more information, see FormattedToString Method.
For example:
SiebelApp.S_App.LocaleObject.StringToFormatted("date","11/05/2012","M/D/YYYY")