We are using an SQL Server 2005 database and we’re facing a problem formatting the datatype: datetime.
When using an object we just want to show the part : mm-dd-yyyy of the datetime, not the HH:mm:sss.
We changed the format of the object to the date pattern “mm-dd-yyyy” and it’s working well when used in the report.
Unfortunately, this is not the same with the list of value. When using a prompt, webI always shows the “HH:mm:sss” part of the datetime.
We tested to format with an SQL statement, just like the samples given in your link: it formats well but it returns a varchar !!!
Then, you loose all the benefits of using a date type : sorting date as varchar is a mess