OBS: JA TENTEI TUDO CONVERT, SUBSTRING, DATEPART CONCATENANDO, E MILHARES DE COISAS, CONVERTENDO A DATA PRA STRING DP VOLTANDO ELA PRA DATETIME AI DA PAU ETC… :thumbdown:
SELECT TOP 3 title_id,pubdate as [Formato Original],
dbo.fn_dateformat(pubdate, 1) as [Data Formatada]
FROM titles ORDER BY pubdate DESC
title_id Formato Original Data Formatada
-------- ------------------------- ---------------
PC9999 2000-08-06 01:33:54.140 06/08/2000
MC3026 2000-08-06 01:33:54.123 06/08/2000
PC8888 1994-06-12 00:00:00.000 12/06/1994
SELECT TOP 3 title_id,pubdate as [Formato Original],
dbo.fn_dateformat(pubdate, 1) as [Data Formatada]
FROM titles ORDER BY pubdate DESC
title_id Formato Original Data Formatada
-------- ------------------------- ---------------
PC9999 2000-08-06 01:33:54.140 06/08/2000
MC3026 2000-08-06 01:33:54.123 06/08/2000
PC8888 1994-06-12 00:00:00.000 12/06/1994
[/quote]
esse código dbo.fn_dateformat(DtFechamento,1) o meu aki nao reconhece =(… tem alguma outra ideia? esse negocio ta osso! hehehe